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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5126bf
sub esp, 0x64
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x2f
call fcn.00402920
mov ecx, dword [esp + 0xc]
test ecx, ecx
jl 0x512618
mov edx, dword [esp + 0x6c]
cmp ecx, edx
ja 0x5126b9
lea eax, [ecx + 1]
cmp eax, edx
ja 0x5126b2
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005118c0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x40]
sub eax, ecx
dec eax
mov ebx, eax
neg eax
sar eax, 0x1f
mov ebp, dword [esp + 0x48]
and ebp, eax
mov eax, dword [esp + 0x68]
add ebp, eax
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test esi, esi
je 0x5125e2
mov ecx, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
jmp 0x51234b
inc edx
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
cmp ebx, edx
jle 0x5125c5
jbe 0x5126a9
movzx edi, byte [ebp + edx]
xchg edi, eax
cmp al, 0x30
xchg edi, eax
jb 0x5125c5
xchg edi, eax
cmp al, 0x39
xchg edi, eax
ja 0x5125c5
mov esi, dword [esp + 0x28]
lea esi, [esi + esi*4]
add edi, 0xffffffd0
xchg edi, eax
movzx eax, al
xchg edi, eax
lea esi, [edi + esi*2]
cmp esi, 0xffffff
jl 0x512336
mov ebp, 0xffffff
xor esi, esi
mov edi, dword [esp + 0x5c]
test edi, edi
je 0x512542
xchg esi, eax
test al, al
xchg esi, eax
je 0x512542
cmp ebx, edx
jne 0x512542
test ebp, ebp
jl 0x512542
shl ecx, 3
cmp ebp, ecx
jg 0x512542
mov dword [esp + 0x24], ebp
cmp ecx, 0x20
je 0x5123df
cmp ecx, 0x80
jne 0x512539
lea eax, [0x5db380]
mov dword [esp], eax
sar ecx, 3
mov dword [esp + 0x2c], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.004450a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
xor ebx, ebx
jmp 0x51240d
inc ebx
cmp ecx, ebx
jle 0x51244f
cmp edx, 8
jb 0x512427
cmp ecx, ebx
jbe 0x5126a2
mov byte [eax + ebx], 0xff
add edx, 0xfffffff8
jmp 0x51240c
cmp ecx, ebx
jbe 0x51269b
mov ebp, ecx
mov ecx, edx
mov esi, 0xffffffff
xchg esi, eax
shr al, cl
xchg esi, eax
xchg esi, ebx
not ebx
xchg esi, ebx
xchg esi, ecx
mov byte [eax + ebx], cl
xchg esi, ecx
mov ecx, ebp
xor edx, edx
jmp 0x51240c
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.0050ff50
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], edx
lea ebx, [0x5ea620]
mov dword [esp], ebx
call fcn.0040b8d0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x48]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 8], eax
mov eax, dword [0x7a0970]
test eax, eax
jne 0x51252e
mov ecx, dword [esp + 0x60]
mov dword [edi], ecx
mov ecx, dword [esp + 0x30]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x512518
mov eax, dword [esp + 0x58]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x64
ret
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x58]
call fcn.0045de10
mov edi, edx
jmp 0x5124e2
mov eax, dword [esp + 0x60]
call fcn.0045de10
jmp 0x5124c7
xor ecx, ecx
xor eax, eax
jmp 0x51244f
lea eax, [0x5ea740]
mov dword [esp], eax
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x610ef0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x5125b3
mov ecx, dword [esp + 0x68]
mov dword [eax + 8], ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea ecx, [0x65ea3c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x64
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.0045de10
mov eax, ecx
jmp 0x51257b
test edx, edx
jne 0x5125d4
xor ebp, ebp
xor esi, esi
xor edx, edx
jmp 0x512399
mov ebp, dword [esp + 0x28]
mov esi, 1
jmp 0x512399
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebp
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00511bb0
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x54]
mov ecx, 0x10
jmp 0x512314
lea eax, [0x5ea740]
mov dword [esp], eax
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x610ef0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x512689
mov ecx, dword [esp + 0x68]
mov dword [eax + 8], ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea ecx, [0x65ea3c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x64
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.0045de10
mov eax, ecx
jmp 0x512651
mov eax, ebx
call fcn.0045de90
mov eax, ebx
call fcn.0045de90
mov eax, edx
mov ecx, ebx
call fcn.0045de90
mov ecx, edx
call fcn.0045def0
call fcn.0045deb0
nop
call fcn.0045c8b0
jmp fcn.00512270