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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x461bdc
sub esp, 0x54
mov eax, dword [esp + 0x58]
test byte [eax], al
lea ecx, [eax + 0x14]
mov dword [esp + 0x50], ecx
mov dword [esp], ecx
call fcn.0040a780
mov eax, dword [esp + 0x58]
movzx ecx, byte [eax + 0x18]
test cl, cl
jne 0x461bcc
mov ecx, dword [eax + 0x54]
test ecx, ecx
seta dl
mov ebx, dword [eax + 0x58]
test ebx, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
xchg esi, ebx
setg bl
xchg esi, ebx
mov edi, dword [eax + 0x90]
mov eax, dword [eax + 0x94]
and ebp, edx
or esi, ebp
xchg esi, eax
test al, al
xchg esi, eax
je 0x4616c1
cmp edi, ecx
sete dl
cmp ebx, eax
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebp, edx
jmp 0x4616c3
xor ebp, ebp
xchg ebp, eax
mov byte [esp + 0x2a], al
xchg ebp, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x5c]
test edx, edx
xchg esi, ebx
seta bl
xchg esi, ebx
mov eax, dword [esp + 0x60]
test eax, eax
xchg edi, ebx
sete bl
xchg edi, ebx
xchg ebp, ebx
setg bl
xchg ebp, ebx
and edi, esi
or ebp, edi
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x46170a
mov eax, dword [esp + 0x60]
jmp 0x46174d
call fcn.00456ef0
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x5c]
add edx, eax
mov eax, dword [esp + 0x60]
adc eax, ecx
test eax, eax
sete cl
setl bl
test edx, edx
xchg ebp, ebx
setbe bl
xchg ebp, ebx
and ebp, ecx
or ebx, ebp
test bl, bl
je 0x461745
mov eax, 0x7fffffff
mov edx, 0xffffffff
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x64]
cmp ebp, 0x72
je 0x46175e
cmp ebp, 0xe9
jne 0x46176a
mov esi, dword [esp + 0x58]
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], eax
jmp 0x46176e
mov esi, dword [esp + 0x58]
cmp ebp, 0x77
je 0x46177b
cmp ebp, 0xe9
jne 0x461787
mov dword [esi + 0x90], edx
mov dword [esi + 0x94], eax
mov dword [esp], esi
call fcn.00433170
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x54]
test ecx, ecx
seta dl
mov ebx, dword [eax + 0x58]
test ebx, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
xchg esi, ebx
setg bl
xchg esi, ebx
and ebp, edx
or esi, ebp
xchg esi, eax
test al, al
xchg esi, eax
je 0x4617d2
cmp dword [eax + 0x90], ecx
sete dl
cmp dword [eax + 0x94], ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebp, edx
jmp 0x4617d4
xor ebp, ebp
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4617e2
lea edx, [0x51061c]
jmp 0x4617e8
lea edx, [0x510620]
xchg ebp, eax
mov byte [esp + 0x2b], al
xchg ebp, eax
lea edi, [eax + 0x38]
mov ebp, dword [eax + 0x38]
test ebp, ebp
je 0x4618ff
mov ebp, dword [esp + 0x34]
cmp ecx, ebp
setne cl
mov ebp, dword [esp + 0x38]
cmp ebx, ebp
setne bl
or ebx, ecx
test bl, bl
je 0x461820
movzx ecx, byte [esp + 0x2b]
movzx ebx, byte [esp + 0x2a]
jmp 0x461832
movzx ecx, byte [esp + 0x2b]
movzx ebx, byte [esp + 0x2a]
cmp cl, bl
je 0x46197a
mov dword [esp + 0x4c], edi
inc dword [eax + 0x20]
mov ebp, dword [eax + 0x54]
test ebp, ebp
xchg ebp, ebx
seta bl
xchg ebp, ebx
mov esi, dword [eax + 0x58]
test esi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
xchg edi, ebx
setg bl
xchg edi, ebx
and esi, ebp
or edi, esi
xchg edi, eax
test al, al
xchg edi, eax
je 0x4618c0
mov dword [esp + 0x40], edx
mov dword [esp], eax
call fcn.00433c70
mov eax, dword [esp + 0x58]
lea ecx, [eax + 0x24]
mov edx, dword [eax + 0x54]
mov ebx, dword [eax + 0x58]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [eax + 0x20]
mov dword [esp], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call fcn.00455320
mov ecx, dword [esp + 0x58]
jmp 0x4618f1
lea ecx, [eax + 0x24]
mov dword [esp], ecx
call fcn.00454e10
mov eax, dword [0x60a540]
test eax, eax
jne 0x4618e2
mov ecx, dword [esp + 0x58]
mov dword [ecx + 0x38], 0
jmp 0x4618f1
mov edi, dword [esp + 0x4c]
xor eax, eax
call fcn.00465280
mov ecx, dword [esp + 0x58]
mov eax, ecx
movzx ecx, byte [esp + 0x2b]
movzx ebx, byte [esp + 0x2a]
jmp 0x46197a
xchg esi, eax
test al, al
xchg esi, eax
je 0x461970
mov ecx, dword [0x60a540]
test ecx, ecx
jne 0x461914
mov dword [eax + 0x38], edx
jmp 0x46191f
mov ecx, eax
mov eax, edx
call fcn.00465280
mov eax, ecx
mov dword [esp], eax
call fcn.00433c70
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x58]
mov dword [edx + 0x3c], ecx
mov ecx, dword [0x60a540]
test ecx, ecx
jne 0x461945
mov dword [edx + 0x40], eax
jmp 0x46194d
lea edi, [edx + 0x40]
call fcn.00465280
mov eax, dword [edx + 0x20]
mov dword [edx + 0x44], eax
lea eax, [edx + 0x24]
mov ecx, dword [edx + 0x54]
mov ebx, dword [edx + 0x58]
mov dword [esp], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call fcn.00455730
mov eax, dword [esp + 0x58]
movzx ecx, byte [esp + 0x2b]
movzx ebx, byte [esp + 0x2a]
lea edi, [eax + 0x74]
mov edx, dword [eax + 0x74]
test edx, edx
je 0x461a86
mov edx, dword [esp + 0x2c]
cmp dword [eax + 0x90], edx
setne dl
mov ebp, dword [esp + 0x30]
cmp dword [eax + 0x94], ebp
xchg ebp, ebx
setne bl
xchg ebp, ebx
or ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x4619b6
cmp cl, bl
je 0x461b33
mov dword [esp + 0x48], edi
inc dword [eax + 0x5c]
mov edx, dword [eax + 0x94]
test edx, edx
setg bl
mov ebp, dword [eax + 0x90]
test ebp, ebp
xchg ebp, ebx
seta bl
xchg ebp, ebx
test edx, edx
sete dl
and edx, ebp
or edx, ebx
test dl, dl
je 0x461a4d
test cl, cl
jne 0x461a4d
mov dword [esp], eax
call fcn.00433c70
mov eax, dword [esp + 0x58]
lea ecx, [eax + 0x60]
mov edx, dword [eax + 0x90]
mov ebx, dword [eax + 0x94]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [eax + 0x5c]
mov dword [esp], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea ecx, [0x510624]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call fcn.00455320
mov eax, dword [esp + 0x58]
jmp 0x461b33
lea ecx, [eax + 0x60]
mov dword [esp], ecx
call fcn.00454e10
mov eax, dword [0x60a540]
test eax, eax
jne 0x461a72
mov eax, dword [esp + 0x58]
mov dword [eax + 0x74], 0
jmp 0x461b33
mov edi, dword [esp + 0x48]
xor eax, eax
call fcn.00465280
mov eax, dword [esp + 0x58]
jmp 0x461b33
mov edx, dword [eax + 0x90]
test edx, edx
seta dl
mov ebx, dword [eax + 0x94]
test ebx, ebx
sete bl
xchg ebp, ebx
setg bl
xchg ebp, ebx
and ebx, edx
or ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x461b33
test cl, cl
jne 0x461b33
mov ecx, dword [0x60a540]
test ecx, ecx
jne 0x461aca
lea ecx, [0x510624]
mov dword [eax + 0x74], ecx
jmp 0x461ad9
mov ecx, eax
lea eax, [0x510624]
call fcn.00465280
mov eax, ecx
mov dword [esp], eax
call fcn.00433c70
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x58]
mov dword [edx + 0x78], ecx
mov ecx, dword [0x60a540]
test ecx, ecx
jne 0x461aff
mov dword [edx + 0x7c], eax
jmp 0x461b07
lea edi, [edx + 0x7c]
call fcn.00465280
mov eax, dword [edx + 0x5c]
mov dword [edx + 0x80], eax
lea eax, [edx + 0x60]
mov ecx, dword [edx + 0x90]
mov ebx, dword [edx + 0x94]
mov dword [esp], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call fcn.00455730
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x58]
test ecx, ecx
jl 0x461b3e
xor ecx, ecx
jmp 0x461b5d
mov dword [esp], eax
mov dword [esp + 4], 0x72
mov byte [esp + 8], 0
call fcn.004337a0
mov eax, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0x94]
test edx, edx
jl 0x461b6f
xor eax, eax
jmp 0x461b88
mov dword [esp], eax
mov dword [esp + 4], 0x77
mov byte [esp + 8], 0
call fcn.004337a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
call fcn.0040a980
mov eax, dword [esp + 0x44]
test eax, eax
je 0x461bb0
mov dword [esp], eax
mov dword [esp + 4], 3
call fcn.004335f0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x461bc8
mov dword [esp], eax
mov dword [esp + 4], 3
call fcn.004335f0
add esp, 0x54
ret
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040a980
add esp, 0x54
ret
call fcn.00463e70
jmp fcn.00461640