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

Disassembly:
push 0xffffffffffffffff
push 0x4928c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x20], al
call fcn.00401bc0
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
mov dword [esp + 0x130], ebx
call fcn.00401bc0
mov dx, word [0x4a43b0]
mov al, byte [0x4a43b2]
mov cx, word [0x4a43ac]
mov word [esp + 0x5c], dx
mov dl, byte [0x4a43ae]
mov byte [esp + 0x5e], al
mov ax, word [0x4a43a8]
mov word [esp + 0x60], cx
mov cl, byte [0x4a43aa]
mov byte [esp + 0x62], dl
mov dx, word [0x4a43a4]
mov word [esp + 0x64], ax
mov al, byte [0x4a43a6]
mov byte [esp + 0x66], cl
mov cx, word [0x4a43a0]
mov word [esp + 0x68], dx
mov dl, byte [0x4a43a2]
mov byte [esp + 0x6a], al
mov ax, word [0x4a439c]
mov word [esp + 0x6c], cx
mov cl, byte [0x4a439e]
mov byte [esp + 0x6e], dl
mov dx, word [0x4a4398]
mov word [esp + 0x70], ax
mov al, byte [0x4a439a]
mov byte [esp + 0x72], cl
mov cx, word [0x4a4394]
mov word [esp + 0x74], dx
mov dl, byte [0x4a4396]
mov byte [esp + 0x76], al
mov eax, dword [0x4a4390]
mov word [esp + 0x78], cx
mov ecx, dword [0x4a438c]
mov byte [esp + 0x7a], dl
mov edx, dword [0x4a4388]
mov dword [esp + 0x7c], eax
mov eax, dword [0x4a4384]
mov dword [esp + 0x80], ecx
mov cx, word [0x4a4380]
mov dword [esp + 0x84], edx
mov dl, byte [0x4a4382]
mov dword [esp + 0x88], eax
mov eax, dword [0x4a437c]
mov word [esp + 0x8c], cx
mov ecx, dword [0x4a4378]
mov byte [esp + 0x8e], dl
mov edx, dword [0x4a4374]
mov dword [esp + 0x90], eax
mov eax, dword [0x4a4370]
mov byte [esp + 0x5f], bl
mov byte [esp + 0x63], bl
mov byte [esp + 0x67], bl
mov byte [esp + 0x6b], bl
mov byte [esp + 0x6f], bl
mov byte [esp + 0x73], bl
mov byte [esp + 0x77], bl
mov byte [esp + 0x7b], bl
mov byte [esp + 0x8f], bl
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov ax, word [0x4a436c]
mov ecx, dword [0x4a4368]
mov edx, dword [0x4a4364]
mov word [esp + 0xa8], ax
mov al, byte [0x4a4362]
mov dword [esp + 0xa0], ecx
mov cl, byte [0x4a436e]
mov dword [esp + 0xa4], edx
mov dx, word [0x4a4360]
mov byte [esp + 0xae], al
mov eax, dword [0x4a435c]
mov byte [esp + 0xaa], cl
mov ecx, dword [0x4a4358]
mov word [esp + 0xac], dx
mov edx, dword [0x4a4354]
mov dword [esp + 0xb8], eax
mov eax, dword [0x4a4350]
mov dword [esp + 0xb0], ecx
mov ecx, dword [0x4a434c]
mov dword [esp + 0xb4], edx
mov edx, dword [0x4a4348]
mov dword [esp + 0xc4], eax
mov eax, dword [0x4a4344]
mov dword [esp + 0xbc], ecx
mov ecx, dword [0x4a4340]
mov dword [esp + 0xc0], edx
mov edx, dword [0x4a433c]
mov dword [esp + 0xd0], eax
mov eax, dword [0x4a4338]
mov dword [esp + 0xc8], ecx
mov ecx, dword [0x4a4334]
mov dword [esp + 0xcc], edx
mov edx, dword [0x4a4330]
mov dword [esp + 0xdc], eax
mov eax, dword [0x4a432c]
mov dword [esp + 0xd4], ecx
mov ecx, dword [0x4a4328]
mov dword [esp + 0xd8], edx
mov edx, dword [0x4a4324]
mov dword [esp + 0xe8], eax
mov eax, dword [0x4a4320]
mov dword [esp + 0xe0], ecx
mov ecx, dword [0x4a431c]
mov dword [esp + 0xe4], edx
mov edx, dword [0x4a4318]
mov dword [esp + 0xf4], eax
mov eax, dword [0x4a4314]
mov dword [esp + 0xec], ecx
mov ecx, dword [0x4a4310]
mov dword [esp + 0xf0], edx
mov edx, dword [0x4a430c]
mov dword [esp + 0x100], eax
mov al, byte [esp + 0x13]
mov dword [esp + 0xf8], ecx
mov ecx, dword [0x4a4308]
mov dword [esp + 0xfc], edx
mov edx, dword [0x4a4304]
mov byte [esp + 0x2c], al
xor eax, eax
mov byte [esp + 0xab], bl
mov byte [esp + 0xaf], bl
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov ecx, dword [ebp + 0x303c]
mov edi, 1
cmp ecx, edi
mov byte [esp + 0x12c], 2
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], edi
jle 0x407946
add ebp, 0x3034
jmp 0x4077e6
xor ebx, ebx
mov ecx, dword [ebp + 8]
cmp ecx, edi
jb 0x40781a
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x40781a
mov al, byte [eax - 1]
test al, al
je 0x407808
cmp al, 0xff
je 0x407808
push ebx
push ecx
mov ecx, ebp
call fcn.00402210
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x407813
mov byte [eax - 1], 0xff
mov eax, dword [ebp + 4]
add eax, edi
jmp 0x40781f
mov eax, 0x497534
mov bl, byte [eax]
cmp bl, 0xc9
je 0x407877
mov ecx, dword [0x497530]
mov edx, dword [esp + 0x24]
sub ecx, edx
cmp ecx, 1
ja 0x40783c
call fcn.00474756
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
lea esi, [edx + 1]
push esi
call fcn.00402210
test al, al
je 0x407927
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movsx edx, bl
add eax, ecx
mov dh, dl
push esi
lea ecx, [esp + 0x20]
mov byte [eax], dl
call fcn.00401ba0
jmp 0x407927
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.00401d50
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4078c4
mov cl, byte [eax - 1]
test cl, cl
je 0x4078b4
cmp cl, 0xff
je 0x4078b4
mov ecx, dword [esp + 0x24]
push 0
push ecx
lea ecx, [esp + 0x24]
call fcn.00402210
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4078c4
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4078c8
xor esi, esi
jmp 0x4078f7
mov edx, dword [esp + 0x24]
mov cl, byte [eax - 1]
test cl, cl
lea esi, [edx + eax]
je 0x4078eb
cmp cl, 0xff
je 0x4078eb
push 0
push edx
lea ecx, [esp + 0x24]
call fcn.00402210
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4078f7
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.0040d440
test edi, edi
jne 0x40790a
xor eax, eax
jmp 0x407912
mov ecx, dword [esp + 0x20]
mov eax, edi
sub eax, ecx
test esi, esi
je 0x407918
sub esi, edi
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.0040c6a0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jl 0x4077e4
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40794a
mov ebp, dword [esp + 0x18]
xor ebx, ebx
xor ecx, ecx
jmp 0x407959
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
sub ecx, eax
sar ecx, 4
xor ebx, ebx
cmp ecx, ebx
jle 0x407b0e
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], ecx
jmp 0x40796d
xor ebx, ebx
mov edx, dword [esp + 0x14]
mov ecx, dword [0x497530]
add eax, edx
push ecx
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00402010
lea esi, [esp + 0x5c]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push esi
lea ecx, [esp + 0x28]
call fcn.0040d3b0
cmp eax, ebp
jne 0x4079bb
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
not ecx
dec ecx
cmp eax, ecx
jae 0x4079c9
inc ebx
add esi, 4
cmp ebx, 0x2c
jl 0x407989
jmp 0x407aea
sub eax, ecx
lea edx, [esp + 0x114]
push eax
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.0040c7c0
mov ecx, dword [0x497530]
mov byte [esp + 0x12c], 3
push ecx
push ebp
push eax
lea ecx, [esp + 0x48]
call fcn.00402010
mov eax, dword [esp + 0x118]
mov byte [esp + 0x12c], 2
cmp eax, ebp
je 0x407a28
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x407a1f
cmp al, 0xff
je 0x407a1f
dec al
mov byte [ecx], al
jmp 0x407a28
push ecx
call fcn.00485136
add esp, 4
mov edx, dword [esp + 0x44]
mov dword [esp + 0x118], ebp
cmp edx, ebp
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x120], ebp
mov dword [esp + 0x54], edx
jne 0x407a5d
mov edx, dword [esp + 0x18]
mov dword [edx + ebx*4 + 0x309c], 0xffffffff
jmp 0x407aea
xor esi, esi
cmp edx, ebp
jle 0x407aea
mov ecx, dword [esp + 0x40]
cmp edx, esi
jb 0x407aa6
cmp ecx, ebp
je 0x407aa6
mov al, byte [ecx - 1]
test al, al
je 0x407a91
cmp al, 0xff
je 0x407a91
push ebp
push edx
lea ecx, [esp + 0x44]
call fcn.00402210
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
cmp ecx, ebp
je 0x407aa1
mov byte [ecx - 1], 0xff
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
lea eax, [ecx + esi]
jmp 0x407aab
mov eax, 0x497534
mov al, byte [eax]
cmp al, 0xc8
mov byte [esp + 0x10c], al
ja 0x407ad2
mov edi, dword [esp + 0x10c]
mov eax, dword [esp + 0x18]
and edi, 0xff
add dword [eax + ebx*4 + 0x309c], edi
jmp 0x407ae1
cmp al, 0xfa
jne 0x407ae1
mov eax, dword [esp + 0x18]
mov dword [eax + ebx*4 + 0x309c], ebp
mov eax, dword [esp + 0x54]
inc esi
cmp esi, eax
jl 0x407a6b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
add ecx, 0x10
dec eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
jne 0x40796b
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov ecx, dword [ebp + 0x309c]
mov edx, dword [ebp + 0x30a0]
mov dword [ebp + 0x308c], ecx
mov ecx, dword [ebp + 0x30a4]
mov dword [ebp + 0x3094], ecx
mov ecx, dword [ebp + 0x30f8]
mov dword [ebp + 0x3090], edx
mov edx, dword [ebp + 0x30a8]
xor esi, esi
cmp ecx, ebx
mov dword [ebp + 0x3084], ebx
mov dword [ebp + 0x3088], ebx
mov dword [ebp + 0x3098], edx
mov dword [ebp + 0x3194], ecx
jle 0x407b9b
lea edi, [ebp + 0x3184]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x10c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebx
call fcn.0040d6f0
mov edx, eax
inc esi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp + 0x3194]
mov dword [esp + 0x50], ecx
cmp esi, eax
jl 0x407b62
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov byte [esp + 0x12c], 1
cmp eax, edi
mov esi, eax
je 0x407bc1
push 1
mov ecx, esi
call fcn.00401bc0
add esi, 0x10
cmp esi, edi
jne 0x407bad
mov eax, dword [esp + 0x30]
push eax
call fcn.00485136
mov ecx, dword [esp + 0x44]
add esp, 4
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x407bfa
mov al, byte [ecx - 1]
test al, al
je 0x407bf0
cmp al, 0xff
je 0x407bf0
dec al
mov byte [ecx - 1], al
jmp 0x407bfa
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
pop ebp
cmp ecx, ebx
pop ebx
je 0x407c41
mov al, byte [ecx - 1]
test al, al
je 0x407c37
cmp al, 0xff
je 0x407c37
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret