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

Disassembly:
mov ecx, dword [0x7c3e14]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x5158e8
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.00403390
mov ecx, dword [esp + 0xc]
test ecx, ecx
jl 0x515520
mov edx, dword [esp + 0xc0]
cmp edx, ecx
jb 0x5158e2
lea eax, [ecx + 1]
cmp edx, eax
jb 0x5158db
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.0046860b
mov ecx, dword [esp + 0xbc]
mov dword [esp], ecx
mov esi, dword [esp + 0x34]
mov dword [esp + 4], esi
call fcn.004fdc80
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
lea edi, [esp + 0xa4]
lea esi, [esp + 8]
call fcn.00468aee
lea edi, [esp + 0x54]
lea esi, [esp + 0xa4]
call fcn.00468aee
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xbc]
add ecx, edx
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x51548a
mov dword [esp + 0x48], ecx
lea edi, [esp + 0x90]
lea esi, [esp + 0xa4]
call fcn.00468aee
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x515473
lea ecx, [0x5dda40]
cmp dword [eax], ecx
jne 0x51546f
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
jmp 0x515475
xor eax, eax
jmp 0x515475
xor eax, eax
test eax, eax
jne 0x51548a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
xor ebx, ebx
xor ebp, ebp
jmp 0x5155b7
lea eax, [0x5eb380]
mov dword [esp], eax
call fcn.0040c420
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x60ca11]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x7c3fa0]
test ecx, ecx
jne 0x5154c8
mov ecx, dword [esp + 0xbc]
jmp 0x5154d6
call fcn.00468400
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, [0x659dc4]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], eax
add esp, 0xb8
ret
lea eax, [0x5eb380]
mov dword [esp], eax
call fcn.0040c420
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x60ca11]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x7c3fa0]
test ecx, ecx
jne 0x51555e
mov ecx, dword [esp + 0xbc]
jmp 0x51556c
call fcn.00468400
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, [0x659dc4]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], eax
add esp, 0xb8
ret
inc ebx
cmp ebx, eax
jge 0x5155ed
movzx esi, byte [ecx + ebx]
xchg esi, eax
cmp al, 0x30
xchg esi, eax
jb 0x5155ed
xchg esi, eax
cmp al, 0x39
xchg esi, eax
ja 0x5155ed
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 0x5155b6
xor ecx, ecx
mov ebp, 0xffffff
jmp 0x5155fe
test ebx, ebx
jne 0x5155f9
xor ecx, ecx
xor ebp, ebp
xor ebx, ebx
jmp 0x5155fe
mov ecx, 1
test cl, cl
je 0x5156d9
cmp ebx, eax
jne 0x5156d9
test ebp, ebp
jl 0x5156d9
lea edi, [esp + 0x7c]
lea esi, [esp + 0x54]
call fcn.00468aee
mov eax, dword [esp + 0x8c]
cmp dword [0x79d900], eax
jne 0x515636
xor eax, eax
jmp 0x51564a
cmp dword [0x79d904], eax
jne 0x515645
mov eax, 0x20
jmp 0x51564a
mov eax, pe_nt_image_headers32
cmp eax, ebp
jl 0x5156d9
lea edi, [esp + 0x68]
lea esi, [esp + 0x54]
call fcn.00468aee
mov eax, dword [esp + 0x78]
cmp dword [0x79d900], eax
jne 0x51566f
xor eax, eax
jmp 0x515683
cmp dword [0x79d904], eax
jne 0x51567e
mov eax, 0x20
jmp 0x515683
mov eax, pe_nt_image_headers32
cmp eax, 0x20
je 0x515698
cmp eax, 0x80
je 0x515698
xor eax, eax
xor ecx, ecx
jmp 0x51576f
cmp eax, ebp
jl 0x5156d0
mov dword [esp + 0x24], ebp
lea ecx, [0x5ddd80]
mov dword [esp], ecx
sar eax, 3
mov dword [esp + 0x30], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044d9f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
xor ebx, ebx
jmp 0x51589e
xor eax, eax
xor ecx, ecx
jmp 0x51576f
lea eax, [0x5eb380]
mov dword [esp], eax
call fcn.0040c420
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x60ca11]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x7c3fa0]
test ecx, ecx
jne 0x515717
mov ecx, dword [esp + 0xbc]
jmp 0x515725
call fcn.00468400
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, [0x659dc4]
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, [0x5db380]
mov dword [esp], edx
call fcn.0040c420
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
lea edi, [esp]
lea esi, [esp + 0x54]
call fcn.00468aee
call fcn.004ff620
mov edi, dword [esp + 0x50]
lea esi, [esp + 0x14]
call fcn.00468af8
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.00513e90
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, [0x5eb2c0]
mov dword [esp], ebx
call fcn.0040c420
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 [0x7c3fa0]
test ecx, ecx
jne 0x515823
mov ecx, dword [esp + 0x4c]
jmp 0x51582e
call fcn.00468400
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 [0x7c3fa0]
test ecx, ecx
jne 0x51584a
mov ecx, dword [esp + 0x44]
jmp 0x515855
call fcn.00468400
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 0x5158d0
cmp edx, 8
jb 0x5158b0
mov byte [eax + ebx], 0xff
add edx, 0xfffffff8
jmp 0x51589d
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 0x51589d
mov ecx, eax
mov eax, dword [esp + 0x30]
jmp 0x51576f
mov ecx, edx
call fcn.004684c0
call fcn.00468480
nop
call fcn.00467000
jmp fcn.00515360