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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x51b2b8
sub esp, 0xb8
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x2f
call fcn.00403550
mov ecx, dword [esp + 0xc]
test ecx, ecx
jl 0x51aef0
mov edx, dword [esp + 0xc0]
cmp edx, ecx
jb 0x51b2b2
lea eax, [ecx + 1]
cmp edx, eax
jb 0x51b2ab
mov dword [esp + 0x34], ecx
sub edx, ecx
dec edx
mov dword [esp + 0x28], edx
neg edx
sar edx, 0x1f
and eax, edx
mov dword [esp + 0x40], eax
lea edi, [esp + 0xa4]
xor eax, eax
call fcn.004690fb
mov ecx, dword [esp + 0xbc]
mov dword [esp], ecx
mov esi, dword [esp + 0x34]
mov dword [esp + 4], esi
call fcn.00502c30
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
lea edi, [esp + 0xa4]
lea esi, [esp + 8]
call fcn.004695de
lea edi, [esp + 0x54]
lea esi, [esp + 0xa4]
call fcn.004695de
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xbc]
add ecx, edx
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x51ae5a
mov dword [esp + 0x48], ecx
lea edi, [esp + 0x90]
lea esi, [esp + 0xa4]
call fcn.004695de
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x51ae43
lea ecx, [0x6f44e0]
cmp dword [eax], ecx
jne 0x51ae3f
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
jmp 0x51ae45
xor eax, eax
jmp 0x51ae45
xor eax, eax
test eax, eax
jne 0x51ae5a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
xor ebx, ebx
xor ebp, ebp
jmp 0x51af87
lea eax, [0x7097e0]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x73cc2a]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x51ae98
mov ecx, dword [esp + 0xbc]
jmp 0x51aea6
call fcn.00468e60
mov ecx, dword [esp + 0xbc]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
lea ecx, [0x7b0de8]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], eax
add esp, 0xb8
ret
lea eax, [0x7097e0]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x73cc2a]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x51af2e
mov ecx, dword [esp + 0xbc]
jmp 0x51af3c
call fcn.00468e60
mov ecx, dword [esp + 0xbc]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
lea ecx, [0x7b0de8]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], eax
add esp, 0xb8
ret
inc ebx
cmp ebx, eax
jge 0x51afbd
movzx esi, byte [ecx + ebx]
xchg esi, eax
cmp al, 0x30
xchg esi, eax
jb 0x51afbd
xchg esi, eax
cmp al, 0x39
xchg esi, eax
ja 0x51afbd
lea ebp, [ebp + ebp*4]
add esi, 0xffffffd0
xchg esi, eax
movzx eax, al
xchg esi, eax
lea ebp, [esi + ebp*2]
cmp ebp, 0xffffff
jl 0x51af86
xor ecx, ecx
mov ebp, 0xffffff
jmp 0x51afce
test ebx, ebx
jne 0x51afc9
xor ecx, ecx
xor ebp, ebp
xor ebx, ebx
jmp 0x51afce
mov ecx, 1
test cl, cl
je 0x51b0a9
cmp ebx, eax
jne 0x51b0a9
test ebp, ebp
jl 0x51b0a9
lea edi, [esp + 0x7c]
lea esi, [esp + 0x54]
call fcn.004695de
mov eax, dword [esp + 0x8c]
cmp dword [0x96e8c0], eax
jne 0x51b006
xor eax, eax
jmp 0x51b01a
cmp dword [0x96e8c4], eax
jne 0x51b015
mov eax, 0x20
jmp 0x51b01a
mov eax, pe_nt_image_headers32
cmp eax, ebp
jl 0x51b0a9
lea edi, [esp + 0x68]
lea esi, [esp + 0x54]
call fcn.004695de
mov eax, dword [esp + 0x78]
cmp dword [0x96e8c0], eax
jne 0x51b03f
xor eax, eax
jmp 0x51b053
cmp dword [0x96e8c4], eax
jne 0x51b04e
mov eax, 0x20
jmp 0x51b053
mov eax, pe_nt_image_headers32
cmp eax, 0x20
je 0x51b068
cmp eax, 0x80
je 0x51b068
xor eax, eax
xor ecx, ecx
jmp 0x51b13f
cmp eax, ebp
jl 0x51b0a0
mov dword [esp + 0x24], ebp
lea ecx, [0x6f4820]
mov dword [esp], ecx
sar eax, 3
mov dword [esp + 0x30], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044e560
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
xor ebx, ebx
jmp 0x51b26e
xor eax, eax
xor ecx, ecx
jmp 0x51b13f
lea eax, [0x7097e0]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x73cc2a]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x51b0e7
mov ecx, dword [esp + 0xbc]
jmp 0x51b0f5
call fcn.00468e60
mov ecx, dword [esp + 0xbc]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
lea ecx, [0x7b0de8]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], eax
add esp, 0xb8
ret
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], ecx
lea edx, [0x6f0140]
mov dword [esp], edx
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
lea edi, [esp]
lea esi, [esp + 0x54]
call fcn.004695de
call fcn.005045d0
mov edi, dword [esp + 0x50]
lea esi, [esp + 0x14]
call fcn.004695e8
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], 0x10
mov dword [esp + 8], 0x10
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
call fcn.00519c00
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
lea ebx, [0x709720]
mov dword [esp], ebx
call fcn.0040c500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x51b1f3
mov ecx, dword [esp + 0x4c]
jmp 0x51b1fe
call fcn.00468e60
mov ecx, dword [esp + 0x4c]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x51b21a
mov ecx, dword [esp + 0x44]
jmp 0x51b225
call fcn.00468e60
mov ecx, dword [esp + 0x44]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], 0x10
mov dword [esp + 0xcc], 0x10
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
add esp, 0xb8
ret
inc ebx
cmp ebx, ecx
jge 0x51b2a0
cmp edx, 8
jb 0x51b280
mov byte [eax + ebx], 0xff
add edx, 0xfffffff8
jmp 0x51b26d
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 0x51b26d
mov ecx, eax
mov eax, dword [esp + 0x30]
jmp 0x51b13f
mov ecx, edx
call fcn.00468f30
call fcn.00468ef0
nop
call fcn.00467a60
jmp fcn.0051ad30