Function at 0x513450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5137d3
sub esp, 0x54
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x51378d
mov ebp, dword [esp + 0x58]
test byte [ebp], al
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
jmp 0x5134d2
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], edi
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x38]
sub ebx, esi
cmp ebx, 4
jl 0x513784
mov ebx, dword [esp + 0x44]
sub ecx, ebx
cmp ecx, 4
jl 0x5136a9
lea ebx, [esi + 4]
cmp edx, ebx
jb 0x5137cb
cmp esi, ebx
ja 0x5137c2
mov dword [esp + 0x3c], ebx
sub edx, esi
neg edx
sar edx, 0x1f
and edx, esi
movzx esi, byte [edi + edx]
movzx esi, byte [esi + ebp + 0x40]
xchg esi, eax
mov byte [esp + 0x32], al
xchg esi, eax
movzx ebx, byte [edi + edx + 1]
movzx ebx, byte [ebx + ebp + 0x40]
mov byte [esp + 0x31], bl
movzx ebx, byte [edi + edx + 2]
movzx ebx, byte [ebx + ebp + 0x40]
movzx edi, byte [edi + edx + 3]
movzx edi, byte [edi + ebp + 0x40]
mov edx, ebp
movzx ebp, byte [esp + 0x31]
or esi, ebp
or esi, ebx
or esi, edi
xchg esi, eax
cmp al, 0xff
xchg esi, eax
jne 0x51366b
mov ebx, 0
je 0x5135c9
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 0x44]
cmp ecx, ebp
jb 0x5137bb
mov dword [esp + 0x34], ebx
mov esi, dword [esp + 0x64]
mov edi, esi
sub esi, ebp
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ebp
shr ebx, 0x18
mov byte [eax + esi], bl
mov ebx, edi
mov edi, dword [esp + 0x34]
shr edi, 0x10
xchg edi, ebx
mov byte [eax + esi + 1], bl
xchg edi, ebx
mov edi, dword [esp + 0x34]
shr edi, 8
xchg edi, ebx
mov byte [eax + esi + 2], bl
xchg edi, ebx
mov edi, dword [esp + 0x34]
xchg edi, ebx
mov byte [eax + esi + 3], bl
xchg edi, ebx
add ebp, 3
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
jmp 0x5134b2
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x44]
cmp ebx, ebp
jb 0x5137b2
mov dword [esp], edx
mov ebx, dword [esp + 0x64]
sub ebx, ebp
mov edi, ebx
neg ebx
sar ebx, 0x1f
and ebx, ebp
add ebx, eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x70]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
call fcn.00512e90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
test ebx, ebx
jne 0x51365b
mov edx, dword [esp + 0x58]
mov esi, eax
mov edi, ebx
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov ebp, ecx
mov ecx, dword [esp + 0x60]
jmp 0x5134b2
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebp
add esp, 0x54
ret
xchg esi, eax
mov byte [esp + 0x33], al
xchg esi, eax
movzx esi, byte [esp + 0x32]
xchg esi, eax
movzx eax, al
xchg esi, eax
shl esi, 0x1a
xchg ebp, eax
movzx eax, al
xchg ebp, eax
shl ebp, 0x14
or ebp, esi
movzx ebx, bl
shl ebx, 0xe
or ebx, ebp
xchg edi, eax
movzx ebp, al
xchg edi, eax
shl ebp, 8
or ebx, ebp
movzx ebp, byte [esp + 0x33]
xchg ebp, eax
cmp al, 0xff
xchg ebp, eax
jmp 0x51355e
mov ecx, dword [esp + 0x64]
jmp 0x5136d9
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x70]
mov edx, edi
mov edi, dword [esp + 0x68]
mov esi, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
mov ebx, ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
cmp edx, esi
jle 0x51376c
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x60]
cmp esi, ebx
jb 0x5137a9
mov dword [esp + 0x44], ebx
mov dword [esp], ebp
sub ecx, ebx
mov dword [esp + 0x3c], ecx
neg ecx
sar ecx, 0x1f
and ecx, ebx
add ecx, eax
mov dword [esp + 4], ecx
sub esi, ebx
mov dword [esp + 8], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x70]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x1c], esi
call fcn.00512e90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
test ebx, ebx
je 0x5136af
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebp
add esp, 0x54
ret
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x7c], eax
add esp, 0x54
ret
mov ebx, dword [esp + 0x44]
jmp 0x5136a9
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x54
ret
mov eax, ebx
mov ecx, esi
call fcn.00466210
mov eax, ebp
mov ecx, ebx
call fcn.00466210
mov eax, ebp
call fcn.00466210
mov eax, esi
mov ecx, ebx
call fcn.00466210
mov ecx, ebx
call fcn.004661f0
nop
call fcn.00464bd0
jmp fcn.00513450