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

Disassembly:
push 0xffffffffffffffff
push 0x4294f9
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x434c44]
xor eax, esp
mov dword [esp + 0x688], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434c44]
xor eax, esp
push eax
lea eax, [esp + 0x6a4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6b4]
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x292]
xor eax, eax
push ebx
mov dword [esp + 0x2c], ebx
push ecx
mov dword [esp + 0x34], ebp
mov word [esp + 0x298], ax
call fcn.00414210
add esp, 0xc
push 0x206
lea eax, [esp + 0x8a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x90], dx
call fcn.00414210
add esp, 0xc
push 0x206
lea edx, [esp + 0x49a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x4a0], cx
call fcn.00414210
add esp, 0xc
push ebx
call fcn.00412255
mov dword [esp + 0x50], eax
add esp, 4
lea eax, [esp + 0x4c]
push eax
mov esi, str._d_m_A_B_Y
lea edi, [esp + 0x28]
mov dword [esp + 0x54], edx
call fcn.00404b20
mov dword [esp + 0x6ac], ebx
call fcn.004074da
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403691
push 0x80004005
call fcn.00405380
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x6ac], 1
call fcn.004074da
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4036c3
push 0x80004005
call fcn.00405380
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x6ac], 2
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x290]
push 0x104
push edx
call fcn.0041200f
mov eax, str.PantAgent
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403700
sub eax, edx
sar eax, 1
push eax
push str.PantAgent
lea ecx, [esp + 0x28]
call fcn.00405080
lea eax, [esp + 0x20]
push eax
call fcn.004043f0
mov esi, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x88]
push 0x104
push ecx
call fcn.0041200f
lea eax, [esp + 0x90]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403750
sub eax, edx
sar eax, 1
jne 0x4037eb
push 0x42ec9c
mov ecx, ebp
call fcn.00404d60
lea eax, [esi - 0x10]
mov byte [esp + 0x6ac], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403795
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x6ac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6ac], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
jmp 0x40406c
lea eax, [esp + 0x84]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4037f5
sub eax, edx
sar eax, 1
cmp eax, 5
jae 0x403823
push 0x42eb94
lea ecx, [esp + 0x88]
push 0x104
push ecx
call fcn.0041200f
add esp, 0xc
mov eax, dword [0x42ebb0]
mov edx, dword [str.______]
mov ecx, dword [0x42ebb4]
mov dword [esp + 0x70], eax
mov eax, dword [0x42ebbc]
mov dword [esp + 0x6c], edx
mov edx, dword [0x42ebb8]
mov dword [esp + 0x74], ecx
mov ecx, dword [str.0805121998]
mov dword [esp + 0x7c], eax
mov eax, dword [0x42ebc8]
mov dword [esp + 0x78], edx
mov edx, dword [0x42ebc4]
mov dword [esp + 0x54], ecx
mov ecx, dword [0x42ebcc]
mov dword [esp + 0x5c], eax
mov ax, word [0x42ebd4]
mov dword [esp + 0x58], edx
mov edx, dword [0x42ebd0]
mov dword [esp + 0x60], ecx
mov word [esp + 0x68], ax
xor ecx, ecx
lea eax, [esp + 0x28c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x80], ebx
mov word [esp + 0x6a], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4038a7
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x84]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4038c4
mov esi, dword [esp + 0x28]
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
jmp 0x4038e0
lea eax, [esp + 0x84]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4038f0
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [esp + 0x84]
lea edi, [eax + 2]
jmp 0x403910
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403910
sub eax, edi
sar eax, 1
mov edi, eax
lea eax, [esp + 0x84]
lea ebp, [eax + 2]
jmp 0x403930
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403930
sub eax, ebp
sar eax, 1
mov ebp, eax
mov eax, 0xcccccccd
mul ecx
movzx eax, word [esp + ebp*2 + 0x82]
shr edx, 2
lea edx, [edx + edx*4]
sub ecx, edx
movzx ecx, word [esp + ecx*2 + 0x82]
and edi, 7
movzx edx, word [esp + edi*2 + 0x82]
add ecx, edx
add ecx, eax
mov eax, ebx
cdq
idiv ecx
mov ecx, edx
test ebx, ebx
jne 0x4039d5
mov eax, 0xd1745d17
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb
add ecx, eax
jne 0x4039d5
lea eax, [esp + 0x84]
lea edx, [eax + 2]
jmp 0x4039a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4039a0
sub eax, edx
movzx edx, word [esp + 0x88]
sar eax, 1
movzx ecx, word [esp + eax*2 + 0x82]
movzx eax, word [esp + 0x84]
add ecx, edx
add ecx, eax
mov eax, 0x2f4
cdq
idiv ecx
mov ecx, eax
dec ecx
cmp ecx, 7
ja case.default.0x4039df
jmp dword [ecx*4 + 0x404094]
mov eax, 0x38e38e39
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*8]
mov eax, ebx
sub eax, ecx
cmp eax, 2
jne 0x403a0b
mov eax, ebx
cdq
idiv dword [esp + 0x18]
jmp 0x403a62
cmp eax, 4
jne 0x403a21
mov eax, ebx
imul eax, dword [esp + 0x1c]
cdq
mov ecx, 9
idiv ecx
jmp 0x403a62
cmp eax, 6
jne 0x403a37
mov eax, ebx
imul eax, dword [esp + 0x1c]
cdq
mov ecx, 9
idiv ecx
jmp 0x403a62
cmp ebx, 8
jne 0x403a59
lea edx, [esp + 0x28c]
push edx
call fcn.00412d92
add eax, eax
add eax, eax
add eax, eax
cdq
add esp, 4
idiv dword [esp + 0x18]
jmp 0x403a62
test eax, eax
je 0x403a68
mov eax, esi
cdq
idiv ebx
mov esi, edx
test esi, esi
jge 0x403a6d
mov esi, 7
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403a74
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
xor edx, edx
mov eax, esi
div ecx
lea eax, [esp + 0x3c]
lea edi, [esp + 0x14]
movzx edx, word [esp + edx*2 + 0x54]
push edx
push eax
call fcn.004047d0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x6b0], 3
call fcn.00405130
mov byte [esp + 0x6ac], 2
mov eax, dword [esp + 0x3c]
jmp 0x403fa0
mov eax, 0x38e38e39
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*8]
mov eax, ebx
sub eax, ecx
cmp eax, 1
jne 0x403ae9
mov eax, ebx
cdq
idiv dword [esp + 0x18]
jmp 0x403b45
cmp eax, 3
jne 0x403aff
mov eax, ebx
imul eax, dword [esp + 0x1c]
cdq
mov ecx, 9
idiv ecx
jmp 0x403b45
cmp eax, 5
jne 0x403b15
mov eax, ebx
imul eax, dword [esp + 0x1c]
cdq
mov ecx, 9
idiv ecx
jmp 0x403b45
cmp ebx, 7
jne 0x403b3c
lea edx, [esp + 0x28c]
push edx
call fcn.00412d92
mov ecx, eax
lea eax, [ecx*8]
sub eax, ecx
cdq
add esp, 4
idiv dword [esp + 0x18]
jmp 0x403b45
test eax, eax
je 0x403b4b
mov eax, esi
cdq
idiv ebx
mov esi, edx
test esi, esi
jge 0x403b50
mov esi, 7
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b57
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
xor edx, edx
mov eax, esi
div ecx
lea eax, [esp + 0x40]
lea edi, [esp + 0x14]
movzx edx, word [esp + edx*2 + 0x6c]
push edx
push eax
call fcn.004047d0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x6b0], 4
call fcn.00405130
mov byte [esp + 0x6ac], 2
mov eax, dword [esp + 0x40]
jmp 0x403fa0
cmp ebx, 1
jne 0x403bb5
mov eax, ebx
cdq
idiv dword [esp + 0x18]
jmp 0x403c15
cmp ebx, 3
jne 0x403bc6
mov eax, ebx
cdq
idiv dword [esp + 0x18]
mov esi, edx
dec esi
jmp 0x403c17
cmp ebx, 5
jne 0x403be5
lea ecx, [esp + 0x28c]
push ecx
call fcn.00412d92
lea eax, [eax + eax*4]
cdq
add esp, 4
idiv dword [esp + 0x18]
jmp 0x403c15
cmp ebx, 7
jne 0x403c0c
lea edx, [esp + 0x28c]
push edx
call fcn.00412d92
mov ecx, eax
lea eax, [ecx*8]
sub eax, ecx
cdq
add esp, 4
idiv dword [esp + 0x18]
jmp 0x403c15
test ebx, ebx
je 0x403c1b
mov eax, esi
cdq
idiv ebx
mov esi, edx
test esi, esi
jge 0x403c20
mov esi, 7
lea eax, [esp + 0x28c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c30
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
xor edx, edx
mov eax, esi
div ecx
lea eax, [esp + 0x34]
lea edi, [esp + 0x14]
movzx edx, word [esp + edx*2 + 0x28c]
push edx
push eax
call fcn.004047d0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x6b0], 5
call fcn.00405130
mov byte [esp + 0x6ac], 2
mov eax, dword [esp + 0x34]
jmp 0x403fa0
lea ecx, [esp + 0x28c]
push ecx
call fcn.00412d92
imul eax, ebx
cdq
add esp, 4
idiv dword [esp + 0x1c]
lea eax, [esp + 0x84]
mov esi, edx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403ca7
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
xor edx, edx
mov eax, esi
div ecx
lea eax, [esp + 0x48]
lea edi, [esp + 0x14]
movzx edx, word [esp + edx*2 + 0x84]
push edx
push eax
call fcn.004047d0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x6b0], 6
call fcn.00405130
mov byte [esp + 0x6ac], 2
mov eax, dword [esp + 0x48]
jmp 0x403fa0
cmp ebx, 1
jne 0x403d08
mov eax, ebx
cdq
idiv dword [esp + 0x18]
jmp 0x403d4a
cmp ebx, 3
jne 0x403d16
mov eax, ebx
cdq
idiv dword [esp + 0x1c]
jmp 0x403d4a
cmp ebx, 5
jne 0x403d20
lea esi, [ebx - 2]
jmp 0x403d4c
cmp ebx, 7
jne 0x403d3c
mov ecx, dword [esp + 0x18]
lea eax, [ecx*8]
sub eax, ecx
cdq
idiv dword [esp + 0x1c]
cdq
idiv ecx
jmp 0x403d4a
test ebx, ebx
jne 0x403d45
lea esi, [ebx + 7]
jmp 0x403d4c
mov eax, esi
cdq
idiv ebx
mov esi, edx
movzx ecx, word [esp + esi*2 + 0x28c]
push ecx
lea edx, [esp + 0x34]
push edx
lea edi, [esp + 0x1c]
call fcn.004047d0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x6b0], 7
call fcn.00405130
mov byte [esp + 0x6ac], 2
mov eax, dword [esp + 0x30]
jmp 0x403fa0
lea ecx, [esp + 0x28c]
push ecx
call fcn.00412d92
imul eax, ebx
cdq
add esp, 4
idiv dword [esp + 0x1c]
lea eax, [esp + 0x84]
mov esi, edx
lea edx, [eax + 2]
jmp 0x403db0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403db0
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
xor edx, edx
mov eax, esi
div ecx
lea eax, [esp + 0x44]
lea edi, [esp + 0x14]
movzx edx, word [esp + edx*2 + 0x84]
push edx
push eax
call fcn.004047d0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x6b0], 8
call fcn.00405130
mov byte [esp + 0x6ac], 2
mov eax, dword [esp + 0x44]
jmp 0x403fa0
cmp ebx, 1
jne 0x403e11
mov eax, ebx
cdq
idiv dword [esp + 0x18]
jmp 0x403e72
cmp ebx, 3
jne 0x403e27
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*2]
cdq
mov ecx, 9
idiv ecx
jmp 0x403e72
cmp ebx, 5
jne 0x403e3d
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
cdq
mov ecx, 9
idiv ecx
jmp 0x403e72
cmp ebx, 7
jne 0x403e64
lea edx, [esp + 0x28c]
push edx
call fcn.00412d92
mov ecx, eax
lea eax, [ecx*8]
sub eax, ecx
cdq
add esp, 4
idiv dword [esp + 0x18]
jmp 0x403e72
test ebx, ebx
jne 0x403e6d
lea esi, [ebx + 5]
jmp 0x403e7d
mov eax, esi
cdq
idiv ebx
mov esi, edx
test esi, esi
jge 0x403e7d
mov esi, 7
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403e84
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
xor edx, edx
mov eax, esi
div ecx
lea eax, [esp + 0x38]
lea edi, [esp + 0x14]
movzx edx, word [esp + edx*2 + 0x54]
push edx
push eax
call fcn.004047d0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x6b0], 9
call fcn.00405130
mov byte [esp + 0x6ac], 2
mov eax, dword [esp + 0x38]
jmp 0x403fa0
cmp ebx, 1
jne 0x403ee2
mov eax, ebx
cdq
idiv dword [esp + 0x18]
jmp 0x403f43
cmp ebx, 3
jne 0x403ef8
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*2]
cdq
mov ecx, 9
idiv ecx
jmp 0x403f43
cmp ebx, 5
jne 0x403f0e
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
cdq
mov ecx, 9
idiv ecx
jmp 0x403f43
cmp ebx, 7
jne 0x403f35
lea edx, [esp + 0x28c]
push edx
call fcn.00412d92
mov ecx, eax
lea eax, [ecx*8]
sub eax, ecx
cdq
add esp, 4
idiv dword [esp + 0x18]
jmp 0x403f43
test ebx, ebx
jne 0x403f3e
lea esi, [ebx + 5]
jmp 0x403f4e
mov eax, esi
cdq
idiv ebx
mov esi, edx
test esi, esi
jge 0x403f4e
mov esi, 7
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403f55
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
xor edx, edx
mov eax, esi
div ecx
lea eax, [esp + 0x2c]
lea edi, [esp + 0x14]
movzx edx, word [esp + edx*2 + 0x6c]
push edx
push eax
call fcn.004047d0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x6b0], 0xa
call fcn.00405130
mov byte [esp + 0x6ac], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.default.0x4039df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, 0xb
jl 0x4038e0
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x498]
push 0x104
push ecx
call fcn.0041200f
mov edi, dword [esp + 0x34]
add esp, 0xc
lea edx, [esp + 0x494]
push edx
mov ecx, edi
call fcn.00404d60
mov byte [esp + 0x6ac], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40401b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x6ac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40403f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6ac], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40406a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x6a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x688]
xor ecx, esp
call fcn.00411cc8
add esp, 0x69c
ret