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

Disassembly:
mov ecx, dword [0x9ec7ac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x64]
cmp eax, dword [ecx + 8]
jbe 0x50836f
sub esp, 0xe4
mov eax, 0
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov byte [esp + 0x43], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0
mov eax, dword [esp + 0xec]
test eax, eax
je 0x50834a
call fcn.004b0e10
lea edi, [esp + 0xc8]
lea esi, [esp]
call fcn.00468bde
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
mov ecx, dword [esp + 0xec]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xf0]
mov dword [esp + 8], edx
lea edi, [esp + 0xc]
lea esi, [esp + 0xc8]
call fcn.00468bde
call fcn.005066c0
lea edi, [esp + 0x8c]
lea esi, [esp + 0x20]
call fcn.00468bde
lea edi, [esp + 0x78]
lea esi, [esp + 0x8c]
call fcn.00468bde
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
test eax, 0x80000000
je 0x507cbd
shl eax, 1
mov edx, ecx
shl ecx, 1
mov ebx, edx
shr edx, 0x1f
or eax, edx
mov edx, eax
shl eax, 1
shr edx, 0x1f
shr ecx, 0x1f
or ecx, eax
add ecx, 0xd7b17f80
adc edx, 0xd
jmp 0x507cd1
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov eax, ebx
mov ebx, ecx
mov ecx, eax
test ecx, ecx
sete cl
test edx, edx
sete dl
and edx, ecx
test dl, dl
je 0x507cfe
test ebx, 0x3fffffff
jne 0x507cfe
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xf0]
xor eax, eax
jmp 0x507e00
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.004686fb
mov ecx, dword [esp + 0xec]
mov edx, dword [ecx + 0x10]
mov ebx, dword [esp + 0xf0]
mov dword [esp], ebx
call edx
movzx ecx, byte [esp + 0x18]
mov byte [esp + 0x41], cl
lea edi, [esp + 0xc8]
lea esi, [esp + 4]
call fcn.00468bde
lea edi, [esp + 0xb4]
lea esi, [esp + 0xc8]
call fcn.00468bde
movzx ecx, byte [esp + 0x41]
test cl, cl
je 0x507d84
lea edi, [esp]
lea esi, [esp + 0x8c]
call fcn.00468bde
lea edi, [esp + 0x14]
lea esi, [esp + 0xb4]
call fcn.00468bde
call fcn.004af280
movzx eax, byte [esp + 0x28]
test al, al
je 0x507df0
lea edi, [esp + 0xa0]
lea esi, [esp + 0x8c]
call fcn.00468bde
mov eax, dword [esp + 0xec]
mov dword [esp], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 4], eax
lea edi, [esp + 8]
lea esi, [esp + 0xa0]
call fcn.00468bde
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004fdc10
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xe0], eax
mov byte [esp + 0x43], 1
mov eax, 1
jmp 0x507e00
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xf0]
xor eax, eax
mov ebx, dword [esp + 0xe8]
mov ebp, dword [ebx + 0x3c]
test ebp, ebp
je 0x507edd
mov dword [esp + 0x64], ebp
mov byte [esp + 0x42], al
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.004fcc30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
movzx ecx, byte [esp + 0x42]
or ecx, 2
mov byte [esp + 0x42], cl
mov edx, dword [esp + 8]
mov dword [esp + 0x74], edx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x58], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x44], ebp
mov dword [esp + 0xdc], eax
mov byte [esp + 0x43], cl
lea esi, [0x6ff0c0]
mov dword [esp], esi
call fcn.0040c5b0
mov eax, dword [esp + 4]
lea ecx, [0x508380]
mov dword [eax], ecx
mov ecx, dword [0x9eca70]
test ecx, ecx
jne 0x507e8b
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
jmp 0x507e9d
call fcn.00468460
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
mov edx, dword [esp + 0x6c]
mov dword [edi + 4], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x9eca70]
test ecx, ecx
jne 0x507eba
mov ecx, dword [esp + 0x58]
jmp 0x507ec5
call fcn.00468450
mov ecx, dword [esp + 0x58]
mov dword [edi], ecx
mov dword [eax + 0x10], ecx
mov dword [esp], eax
call fcn.00444470
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
movzx eax, byte [esp + 0x42]
mov dword [esp + 0x60], edx
mov dword [esp + 0x48], ecx
mov byte [esp + 0x42], al
mov ebx, dword [ecx + 0x1c]
mov dword [esp], edx
lea ebp, [0x6eb520]
mov dword [esp + 4], ebp
lea esi, [0x9ec5e0]
mov dword [esp + 8], esi
call ebx
lea eax, [0x6d44c0]
cmp dword [esp + 0xc], eax
jne 0x507f17
mov ecx, dword [esp + 0x10]
jmp 0x507f19
xor ecx, ecx
test ecx, ecx
jne 0x507f2a
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x60]
jmp 0x507fc8
mov dword [esp + 0x54], ecx
lea eax, [0x70a840]
mov dword [esp], eax
call fcn.0040c5b0
mov eax, dword [0x9eca70]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x54]
mov ebx, dword [edx]
mov edx, dword [edx + 4]
test eax, eax
je 0x507f5d
call fcn.00468460
mov dword [edi], ebx
mov dword [edi + 4], edx
mov dword [ecx], ebx
mov dword [ecx + 4], edx
mov eax, dword [0x9eca70]
test eax, eax
je 0x507f7c
mov eax, dword [ecx + 8]
call fcn.00468460
mov dword [edi], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 4], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
lea ebx, [0x6eb520]
mov dword [esp + 8], ebx
lea ebx, [0x9ec5e0]
mov dword [esp + 0xc], ebx
lea ebx, [0x6d44c0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
call fcn.004fe3f0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xe8]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jne 0x507fdc
mov ebx, dword [0x9a37f0]
mov ebp, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea ecx, [0x7322ad]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 4
mov edx, dword [esp + 0xf4]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xf8]
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0xfc]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x100]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
call fcn.00506dc0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
test eax, eax
je 0x50815d
mov dword [esp + 0x74], edx
mov dword [esp + 0x68], ecx
lea eax, [0x70eea0]
mov dword [esp], eax
call fcn.0040c5b0
mov eax, dword [esp + 4]
mov dword [eax + 4], 4
lea ecx, [0x7322ad]
mov dword [eax], ecx
mov ecx, dword [esp + 0xf8]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x9eca70]
test ecx, ecx
jne 0x50809e
mov ecx, dword [esp + 0xf4]
jmp 0x5080ac
call fcn.00468450
mov ecx, dword [esp + 0xf4]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x9eca70]
test ecx, ecx
jne 0x5080e2
mov ecx, dword [esp + 0x68]
jmp 0x5080ed
call fcn.00468450
mov ecx, dword [esp + 0x68]
mov dword [edi], ecx
mov dword [eax + 0x24], ecx
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
lea ecx, [0x7ab21c]
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], eax
movzx eax, byte [esp + 0x42]
test al, 2
je 0x50813f
and eax, 0xfffffffd
mov byte [esp + 0x42], al
mov byte [esp + 0x43], al
mov edx, dword [esp + 0xdc]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x42]
test al, 1
je 0x508156
and eax, 0xfffffffe
mov byte [esp + 0x43], al
mov edx, dword [esp + 0xe0]
mov eax, dword [edx]
call eax
add esp, 0xe4
ret
mov dword [esp + 0x70], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebp
lea eax, [0x709d40]
mov dword [esp], eax
call fcn.0040c5b0
mov eax, dword [0x9eca70]
mov edi, dword [esp + 4]
mov dword [esp + 0x5c], edi
test eax, eax
je 0x5081aa
lea eax, [0x71be00]
mov dword [esp], eax
mov dword [esp + 4], edi
mov eax, dword [esp + 0xe8]
mov dword [esp + 8], eax
call fcn.00411960
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0xe8]
call fcn.00468b52
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 0x50], eax
mov edx, dword [0x9eca70]
test edx, edx
jne 0x5081d7
mov edx, dword [esp + 0xf4]
jmp 0x5081eb
call fcn.00468460
mov edx, dword [esp + 0xf4]
mov dword [edi], edx
mov ebx, dword [ecx + 0x4c]
mov dword [edi + 4], ebx
mov dword [ecx + 0x4c], edx
mov ebx, dword [esp + 0x100]
mov dword [ecx + 0x58], ebx
mov ebx, dword [0x9eca70]
test ebx, ebx
jne 0x50820b
mov ebx, dword [esp + 0xfc]
jmp 0x50821f
call fcn.00468460
mov ebx, dword [esp + 0xfc]
mov dword [edi], ebx
mov ebp, dword [ecx + 0x54]
mov dword [edi + 4], ebp
mov dword [ecx + 0x54], ebx
mov ebx, dword [esp + 0xe8]
mov ebx, dword [ebx + 0x2c]
test ebx, ebx
sete bl
xchg ebp, ebx
setg bl
xchg ebp, ebx
and ebx, 1
or ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x508295
cmp eax, 3
jne 0x508295
cmp word [edx], 0x6374
jne 0x508295
cmp byte [edx + 2], 0x70
jne 0x508295
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
lea eax, [0x758d34]
mov dword [esp + 0xc], eax
call fcn.00514030
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x5082a7
xor edx, edx
xor ecx, ecx
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
xor eax, eax
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x5c]
mov dword [esp], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 4], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.00508440
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], edx
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], ebx
movzx eax, byte [esp + 0x42]
test al, 2
je 0x50832c
and eax, 0xfffffffd
mov byte [esp + 0x42], al
mov byte [esp + 0x43], al
mov edx, dword [esp + 0xdc]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x42]
test al, 1
je 0x508343
and eax, 0xfffffffe
mov byte [esp + 0x43], al
mov edx, dword [esp + 0xe0]
mov eax, dword [edx]
call eax
add esp, 0xe4
ret
lea eax, [0x6e41c0]
mov dword [esp], eax
lea eax, [0x7aa9e8]
mov dword [esp + 4], eax
call fcn.004386b0
nop
call fcn.00437c30
add esp, 0xe4
ret
call fcn.00467050
jmp fcn.00507bb0