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

Disassembly:
push 0xffffffffffffffff
push 0x4928f1
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4af5e0]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4af5e0]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1ac]
mov ebp, 0x10
mov edi, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], edi
cmp dword [eax + 0x18], ebp
jb 0x40703b
mov eax, dword [eax + 4]
jmp 0x40703e
add eax, 4
mov ecx, eax
call fcn.00407db0
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x407860
cmp dword [eax + 4], 1
mov edx, 0x49b2f4
jne 0x407063
mov edx, 0x49b2f8
mov eax, edx
mov esi, 0xf
lea ecx, [eax + 1]
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
mov dword [esp + 0x14], ecx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407086
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x140]
push eax
push edx
call fcn.004034d0
mov dword [esp + 0x1a4], ebx
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xf0]
push eax
add ecx, 0x14
lea edx, [esp + 0x110]
mov byte [esp + 0x1ac], 2
call fcn.00404b70
add esp, 8
test al, al
jne 0x407175
cmp dword [esp + 0x104], ebp
jb 0x407118
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.0045f0f8
add esp, 4
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
cmp dword [esp + 0x120], ebp
jb 0x407146
mov edx, dword [esp + 0x10c]
push edx
call fcn.0045f0f8
add esp, 4
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
cmp dword [esp + 0x158], ebp
jb 0x407860
mov eax, dword [esp + 0x144]
push eax
jmp 0x407858
test byte [0x4b4be0], 1
jne 0x4071a4
or dword [0x4b4be0], 1
push 0x4943c0
mov dword [0x4b4bdc], esi
mov dword [0x4b4bd8], ebx
mov byte [0x4b4bc8], bl
call fcn.0046122d
add esp, 4
cmp dword [0x4b4bd8], ebx
jne 0x4071e6
lea esi, [esp + 0x60]
call fcn.004056d0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4b4bc4
mov byte [esp + 0x1b0], 3
call fcn.00403110
mov byte [esp + 0x1a4], 2
cmp dword [esp + 0x78], ebp
jb 0x4071e6
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0045f0f8
add esp, 4
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x164]
push ecx
call fcn.004061a0
mov byte [esp + 0x1a4], 4
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
xor esi, esi
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], esi
je 0x4077da
mov dword [esp + 0x18], ebx
jmp 0x40723b
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
cmp esi, eax
jb 0x407244
call fcn.0045f2db
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + eax + 0x14]
mov dword [esp + 0x58], ecx
mov ecx, dword [edi + 0x10]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x407274
call fcn.0045f2db
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x18]
cmp dword [eax + 0x18], ebp
jb 0x407285
mov eax, dword [eax + 4]
jmp 0x407288
add eax, 4
mov ecx, dword [esp + 0x58]
push ecx
push eax
lea esi, [esp + 0x12c]
call fcn.00405820
add esp, 8
mov edx, esi
lea ecx, [esp + 0x60]
mov byte [esp + 0x1a4], 5
call fcn.00405f00
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x1b0], 6
call fcn.00403110
mov byte [esp + 0x1a4], 5
cmp dword [esp + 0x78], ebp
jb 0x4072de
mov edx, dword [esp + 0x64]
push edx
call fcn.0045f0f8
add esp, 4
mov eax, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0xd4]
push 0x49b320
push ecx
call fcn.0040e040
add esp, 0xc
push 0x49b314
push eax
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x1b0], 7
call fcn.0040ded0
add esp, 0xc
lea ecx, [esp + 0x140]
push ecx
push eax
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x1b0], 8
call fcn.0040df90
add esp, 0xc
push 0x49b308
push eax
lea eax, [esp + 0xbc]
push eax
mov byte [esp + 0x1b0], 9
call fcn.0040ded0
add esp, 0xc
push 0x4b4bc4
push eax
lea ecx, [esp + 0xa0]
push ecx
mov byte [esp + 0x1b0], 0xa
call fcn.0040df90
add esp, 0xc
push 0x49b2fc
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x1b0], 0xb
call fcn.0040ded0
add esp, 0xc
lea ecx, [esp + 0x124]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x1b0], 0xc
call fcn.0040df90
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x130]
mov byte [esp + 0x1b0], 0xd
call fcn.00403110
cmp dword [esp + 0x50], ebp
jb 0x4073d4
mov eax, dword [esp + 0x3c]
push eax
call fcn.0045f0f8
add esp, 4
mov edi, 0xf
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x34], ebp
jb 0x4073f8
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0045f0f8
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0xb0], ebp
jb 0x40741d
mov edx, dword [esp + 0x9c]
push edx
call fcn.0045f0f8
add esp, 4
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0xcc], ebp
jb 0x40744b
mov eax, dword [esp + 0xb8]
push eax
call fcn.0045f0f8
add esp, 4
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x94], ebp
jb 0x407479
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0045f0f8
add esp, 4
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x78], ebp
jb 0x4074a1
mov edx, dword [esp + 0x64]
push edx
call fcn.0045f0f8
add esp, 4
mov byte [esp + 0x1a4], 5
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0xe8], ebp
jb 0x4074ce
mov eax, dword [esp + 0xd4]
push eax
call fcn.0045f0f8
add esp, 4
mov ecx, dword [esp + 0xf0]
cmp dword [esp + 0x104], ebp
jae 0x4074e5
lea ecx, [esp + 0xf0]
lea esi, [esp + 0x15c]
call fcn.00406360
push 0xa
push 0x49b330
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.004034d0
mov byte [esp + 0x1a4], 0xe
push 0xa
push 0x49b33c
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004034d0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
mov eax, esi
push eax
mov byte [esp + 0x1b0], 0xf
call fcn.004065d0
cmp dword [esp + 0x34], ebp
jb 0x40755e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0045f0f8
add esp, 4
mov byte [esp + 0x1a4], 5
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], ebp
jb 0x407585
mov edx, dword [esp + 0x3c]
push edx
call fcn.0045f0f8
add esp, 4
push 0xe
push 0x49b348
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.004034d0
mov byte [esp + 0x1a4], 0x10
mov eax, dword [esp + 0x138]
push eax
lea edi, [esp + 0x3c]
lea esi, [esp + 0x160]
call fcn.00406690
mov byte [esp + 0x1a4], 5
cmp dword [esp + 0x50], ebp
jb 0x4075dc
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0045f0f8
add esp, 4
push 0x21
mov esi, 0xf
push 0x49b358
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.004034d0
mov byte [esp + 0x1a4], 0x11
push 0xc
push 0x49b37c
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004034d0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x164]
push ecx
mov byte [esp + 0x1b0], 0x12
call fcn.004065d0
cmp dword [esp + 0x34], ebp
jb 0x407653
mov edx, dword [esp + 0x20]
push edx
call fcn.0045f0f8
add esp, 4
mov byte [esp + 0x1a4], 5
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], ebp
jb 0x40767a
mov eax, dword [esp + 0x3c]
push eax
call fcn.0045f0f8
add esp, 4
push 0xa
push 0x49b38c
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.004034d0
mov byte [esp + 0x1a4], 0x13
push 6
push 0x49b398
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004034d0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x164]
push eax
mov byte [esp + 0x1b0], 0x14
call fcn.004065d0
cmp dword [esp + 0x34], ebp
jb 0x4076ec
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0045f0f8
add esp, 4
mov byte [esp + 0x1a4], 5
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], ebp
jb 0x407713
mov edx, dword [esp + 0x3c]
push edx
call fcn.0045f0f8
add esp, 4
lea ecx, [esp + 0x15c]
call fcn.00406780
cmp dword [esp + 0x13c], ebp
mov ebp, dword [esp + 0x128]
jae 0x407736
lea ebp, [esp + 0x128]
cmp dword [esp + 0x17c], ebx
mov esi, dword [esp + 0x138]
jge 0x407756
lea edi, [esp + 0x15c]
call fcn.004062a0
test al, al
je 0x407773
cmp esi, ebx
jle 0x407773
mov eax, dword [esp + 0x17c]
push ebx
push esi
push ebp
push eax
call dword [0x4954dc]
sub esi, eax
add ebp, eax
cmp esi, ebx
jg 0x40775a
lea ecx, [esp + 0x15c]
push ecx
call fcn.00406970
mov byte [esp + 0x1a4], 4
cmp dword [esp + 0x13c], 0x10
jb 0x4077a2
mov edx, dword [esp + 0x128]
push edx
call fcn.0045f0f8
add esp, 4
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov esi, dword [esp + 0x14]
add dword [esp + 0x18], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x14], esi
mov ebp, 0x10
cmp esi, eax
jb 0x407233
lea esi, [esp + 0x15c]
call fcn.00406220
cmp dword [esp + 0x104], ebp
jb 0x4077ff
mov eax, dword [esp + 0xf0]
push eax
call fcn.0045f0f8
add esp, 4
mov esi, 0xf
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
cmp dword [esp + 0x120], ebp
jb 0x407832
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.0045f0f8
add esp, 4
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
cmp dword [esp + 0x158], ebp
jb 0x407860
mov edx, dword [esp + 0x144]
push edx
call fcn.0045f0f8
add esp, 4
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0045fa9a
add esp, 0x194
ret