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

Disassembly:
push 0xffffffffffffffff
push 0x4262d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 0x2c]
push edi
push 1
mov ecx, esi
mov dword [esp + 0x24], ebx
call fcn.00403590
test al, al
jne 0x4046e7
mov eax, dword [esi + 0x3c]
mov ecx, eax
shr ecx, 1
test cl, 1
jne 0x4046e7
and eax, 0x18
cmp al, 0x18
je 0x4046e7
mov esi, dword [esi + 0x3c]
mov edx, esi
shr edx, 4
test dl, 1
je 0x4046db
mov eax, esi
shr eax, 3
test al, 1
je 0x4046e7
mov eax, dword [ebx + 0xbc]
xor edi, edi
cmp eax, edi
je 0x4046fc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
mov eax, dword [ebx + 0xb0]
cmp eax, edi
jne 0x40470e
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x404717
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov ebp, ecx
cmp bp, di
je 0x404be6
xor eax, eax
xor esi, esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x54], 0x428578
cmp bp, di
mov dword [esp + 0x70], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
jbe 0x404832
push edi
mov ecx, ebx
call fcn.00402ff0
mov esi, eax
mov edx, dword [esi + 0x64]
shr edx, 5
test dl, 1
je 0x40481a
lea eax, [ebx + 0x94]
mov ecx, ebx
push eax
push edi
call fcn.00402ff0
mov ecx, eax
call fcn.0040bc10
mov ecx, dword [esi + 0x6c]
lea eax, [esi + 0x68]
test ecx, ecx
je 0x404791
mov ecx, dword [eax + 8]
test ecx, ecx
ja 0x404799
push eax
mov ecx, esi
call fcn.0040be40
mov ecx, dword [esi + 0x7c]
lea eax, [esi + 0x78]
test ecx, ecx
je 0x4047aa
mov ecx, dword [eax + 8]
test ecx, ecx
ja 0x4047b2
push eax
mov ecx, esi
call fcn.0040bf10
push 1
mov ecx, esi
call fcn.0040c3c0
push 0
mov ecx, esi
mov ebp, eax
call fcn.0040c3c0
mov edi, dword [esi + 0x28]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
sub eax, ebp
lea ecx, [esi + 1]
add edx, eax
mov ax, word [esp + 0x14]
push 0xffffffffffffffff
push ecx
add edi, ebp
lea ecx, [esp + 0x5c]
mov dword [esp + 0x24], edx
mov word [esp + 0x4c], ax
xor ebp, ebp
call fcn.00405580
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x44]
shl esi, 4
add esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], edx
mov dword [esi + 4], edi
mov edi, dword [esp + 0x14]
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x18]
mov dword [esi + 0xc], eax
inc edi
cmp di, bp
mov dword [esp + 0x14], edi
jb 0x404751
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
xor edi, edi
cmp esi, edi
jne 0x404853
mov dword [esp + 0x54], 0x42856c
cmp eax, edi
mov dword [esp + 0x70], 1
je 0x404be6
jmp 0x404bdd
lea ecx, [ebx + 0x94]
call fcn.004066b0
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx]
call dword [edx + 0x14]
dec esi
mov edi, eax
mov dword [esp + 0x18], esi
xor esi, esi
mov dword [esp + 0x24], edi
xor ebp, ebp
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x404890
mov ecx, dword [ebx + 0x54]
mov eax, edi
sub eax, ecx
mov dl, 1
jmp 0x4048be
mov ecx, dword [esp + 0x58]
lea edx, [ecx + esi + 0x10]
mov eax, dword [ecx + esi + 0x10]
push eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x40], ecx
mov ecx, ebx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x44], edx
call fcn.00402ff0
mov eax, dword [eax + 0x28]
xor dl, dl
mov ecx, dword [esp + 0x58]
mov dword [ecx + esi + 8], eax
add ecx, esi
sub eax, dword [ecx + 4]
add ebp, eax
test dl, dl
jne 0x4048df
mov ecx, dword [esp + 0x14]
inc ecx
add esi, 0x10
mov dword [esp + 0x14], ecx
jmp 0x404879
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x58]
mov edx, edi
shl edx, 4
add edx, esi
mov eax, dword [edx]
mov dword [esp + 0x34], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0xc]
test eax, eax
mov dword [esp + 0x40], eax
jle 0x40491c
mov ecx, dword [ebx + 0x30]
mov esi, dword [esp + 0x24]
add eax, esi
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
mov eax, dword [ebx + 0xfc]
lea ecx, [ebx + 0xf0]
push 0
push eax
mov dword [esp + 0x34], ecx
call fcn.00405c00
lea ecx, [esp + 0x30]
push ecx
push 0x200
lea ecx, [ebx + 8]
call fcn.00405540
test eax, eax
je 0x4049cf
mov esi, dword [eax + 0xc]
test esi, esi
mov dword [esi + 0x14], 0x200
mov dword [esp + 0x1c], esi
je 0x404993
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.00404150
mov eax, dword [eax]
mov edx, dword [esi]
push eax
push 0
mov ecx, esi
mov byte [esp + 0x78], 2
call dword [edx + 0xc]
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 0
call fcn.0041fcef
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [esp + 0x58]
mov edx, edi
shl edx, 4
lea eax, [edx + ecx]
mov edx, dword [edx + ecx + 0xc]
test edx, edx
jle 0x4049d9
test edi, edi
sete byte [esp + 0x14]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push 1
push ecx
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push edx
push eax
mov ecx, ebx
call fcn.00404c70
jmp 0x404a69
mov dword [esp + 0x1c], 0
jmp 0x404993
test edi, edi
mov dword [esp + 0x28], edi
jle 0x404a0b
add eax, 0xfffffff0
mov edx, eax
mov esi, dword [edx]
mov dword [esp + 0x44], esi
mov esi, dword [edx + 4]
mov dword [esp + 0x48], esi
mov esi, dword [edx + 8]
mov dword [esp + 0x4c], esi
mov esi, dword [edx + 0xc]
test esi, esi
jg 0x404a09
dec edi
sub eax, 0x10
test edi, edi
jg 0x4049e4
test edi, edi
mov esi, edi
mov ebp, edi
sete byte [esp + 0x14]
shl esi, 4
mov edx, dword [esp + 0x28]
mov al, byte [esp + 0x14]
cmp ebp, edx
sete bl
test al, al
je 0x404a33
test bl, bl
je 0x404a33
mov eax, 1
jmp 0x404a35
xor eax, eax
mov edx, dword [ecx + esi + 0xc]
push eax
mov eax, dword [esp + 0x20]
push 0
push eax
mov eax, dword [ecx + esi + 8]
mov ecx, dword [ecx + esi + 4]
neg edx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00404c70
test bl, bl
jne 0x404a65
mov ecx, dword [esp + 0x58]
inc ebp
add esi, 0x10
jmp 0x404a17
mov ebx, dword [esp + 0x20]
mov al, byte [esp + 0x14]
test al, al
jne 0x404a77
dec edi
jmp 0x404993
mov ecx, dword [esp + 0x2c]
call fcn.00405bd0
mov eax, dword [esp + 0x40]
test eax, eax
jge 0x404a97
mov ecx, dword [ebx + 0x30]
mov esi, dword [esp + 0x24]
add eax, esi
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
xor esi, esi
mov eax, dword [esp + 0x18]
mov edi, esi
cmp esi, eax
mov eax, dword [esp + 0x58]
sete byte [esp + 0x13]
shl edi, 4
mov dword [esp + 0x14], esi
mov cx, word [edi + eax]
lea ebp, [edi + eax]
push ecx
mov ecx, ebx
call fcn.00402ff0
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x13]
test al, al
je 0x404ae9
mov eax, dword [ebx + 0xb0]
test eax, eax
jne 0x404ade
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x404b12
mov eax, dword [eax + 8]
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x404b12
mov eax, dword [esp + 0x58]
lea edx, [esi + 1]
shl edx, 4
add edx, eax
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x4c], ecx
mov ecx, eax
mov edx, dword [edx + 0xc]
mov dword [esp + 0x50], edx
mov ax, word [ebp]
cmp ax, cx
jae 0x404b44
lea esi, [eax + 1]
cmp si, cx
jae 0x404b40
push esi
mov ecx, ebx
call fcn.00402ff0
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x28]
add eax, 0x28
add edx, ecx
inc esi
cmp si, word [esp + 0x20]
mov dword [eax], edx
jb 0x404b23
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x404b4c
xor eax, eax
jmp 0x404b6d
mov edx, dword [esp + 0x58]
lea eax, [edi + edx - 0x10]
mov ecx, dword [edi + edx - 0x10]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x4c], ecx
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x24]
push 0
push 0
lea edi, [ebx + 0x2c]
mov ecx, dword [edx + 0x28]
add ecx, eax
push ecx
mov ecx, edi
call fcn.00409670
mov ebp, dword [esp + 0x24]
push edi
mov ecx, ebp
call fcn.0040bf50
mov ecx, dword [ebp + 0x64]
and ecx, 0xffffffdf
mov dword [ebp + 0x64], ecx
mov ecx, edi
call fcn.00409290
mov al, byte [esp + 0x13]
test al, al
jne 0x404baf
inc esi
jmp 0x404a99
push 1
mov ecx, ebx
call fcn.004045d0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x404bc5
mov edx, dword [ecx]
call dword [edx + 0x18]
mov dword [esp + 0x54], 0x42856c
mov eax, dword [esp + 0x58]
mov dword [esp + 0x70], 3
test eax, eax
je 0x404be6
push eax
call fcn.0041fa59
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret