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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x473be9
mov eax, dword fs:[0]
push eax
sub esp, 0x920
mov eax, dword [0x48c0d0]
xor eax, esp
mov dword [esp + 0x918], eax
push ebx
push esi
push edi
mov eax, dword [0x48c0d0]
xor eax, esp
push eax
lea eax, [esp + 0x930]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, edx
mov esi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], esi
cmp dword [ebx + 0x14], edi
jne 0x4044b6
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], edi
push ebx
mov byte [esi + 4], 0
call fcn.00403e10
jmp 0x40522f
push edi
call fcn.004580a8
push edx
push eax
push 0x47fd28
lea ecx, [esp + 0x92c]
push 0xb
push ecx
call fcn.00457dc2
add esp, 0x18
push edi
mov esi, 0xf
push 0x47fc7a
lea ecx, [esp + 0x908]
mov dword [esp + 0x920], esi
mov dword [esp + 0x91c], edi
mov byte [esp + 0x90c], 0
call fcn.00403880
push 0xffffffffffffffff
mov dword [esp + 0x93c], edi
push edi
push ebx
lea ecx, [esp + 0x8d4]
mov dword [esp + 0x8ec], esi
mov dword [esp + 0x8e8], edi
mov byte [esp + 0x8d8], 0
call fcn.00403e10
mov dword [esp + 0x8fc], esi
mov dword [esp + 0x8f8], edi
mov byte [esp + 0x8e8], 0
mov dword [esp + 0x8c4], esi
mov dword [esp + 0x8c0], edi
mov byte [esp + 0x8b0], 0
mov byte [esp + 0x938], 3
push edi
push 0x47fc7a
lea ecx, [esp + 0x898]
mov dword [esp + 0x8b0], esi
mov dword [esp + 0x8ac], edi
mov byte [esp + 0x89c], 0
call fcn.00403880
mov esi, dword [esp + 0x18]
mov byte [esp + 0x938], 4
mov eax, dword [esi + 0x54]
cmp eax, edi
jbe 0x404670
cmp eax, 0x20
jae 0x404670
cmp dword [ebp + 0xc], edi
jne 0x404639
lea edx, [esp + 0x91c]
push edx
lea ecx, [esp + 0x24]
call fcn.00403990
add esi, 0x5c
lea ecx, [esp + 0x20]
lea eax, [esp + 0x40]
mov byte [esp + 0x938], 5
call fcn.00405c40
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x8b8]
mov byte [esp + 0x944], 6
call fcn.00403e10
lea ecx, [esp + 0x40]
call fcn.00404250
lea ecx, [esp + 0x20]
mov byte [esp + 0x938], 4
call fcn.00404250
mov ecx, dword [esp + 0x8c0]
mov eax, dword [esp + 0x18]
sub ecx, dword [eax + 0x54]
push 0xffffffffffffffff
lea esi, [esp + 0x24]
lea edx, [esp + 0x8b0]
call fcn.00406240
mov byte [esp + 0x938], 7
jmp 0x40464f
push eax
xor ecx, ecx
lea esi, [esp + 0x24]
mov edx, ebx
call fcn.00406240
mov byte [esp + 0x938], 8
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x90c]
call fcn.00403e10
lea ecx, [esp + 0x20]
mov byte [esp + 0x938], 4
call fcn.00404250
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x900]
lea eax, [esi + 0x1c]
push ecx
push eax
lea edi, [esp + 0x28]
call fcn.00406ba0
add esp, 8
add esi, 0x5c
mov ecx, eax
lea eax, [esp + 0x64]
mov byte [esp + 0x938], 9
mov dword [esp + 0x84], esi
call fcn.00405c40
push eax
mov eax, dword [esp + 0x1c]
add eax, 0x1c
push eax
lea edi, [esp + 0x48]
mov byte [esp + 0x940], 0xa
call fcn.00406ba0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8f0]
mov byte [esp + 0x944], 0xb
call fcn.00403e10
cmp dword [esp + 0x58], 0x10
jb 0x4046f3
mov edx, dword [esp + 0x44]
push edx
call fcn.00457a6e
add esp, 4
xor esi, esi
mov edi, 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], esi
mov byte [esp + 0x44], 0
cmp dword [esp + 0x7c], edi
jb 0x40471e
mov eax, dword [esp + 0x68]
push eax
call fcn.00457a6e
add esp, 4
mov byte [esp + 0x938], 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], esi
mov byte [esp + 0x68], 0
cmp dword [esp + 0x38], edi
jb 0x40474a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00457a6e
add esp, 4
mov edx, dword [esp + 0x8f8]
mov dword [esp + 0x60], edx
cmp dword [ebp + 0xc], esi
jne 0x4048e9
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x58], 0
je 0x40477d
push 0
call fcn.004580a8
mov ecx, dword [esi + 0x58]
add esp, 4
xor esi, esi
add ecx, eax
adc esi, edx
jmp 0x404781
xor ecx, ecx
xor esi, esi
push esi
push ecx
push str._010d
lea eax, [esp + 0x928]
push 0xb
push eax
call fcn.00457dc2
mov ecx, dword [esp + 0x2c]
add ecx, 0x38
push ecx
push ebx
lea edi, [esp + 0x3c]
call fcn.00406ba0
add esp, 0x1c
mov esi, dword [esp + 0x84]
mov ecx, eax
lea eax, [esp + 0x40]
mov byte [esp + 0x938], 0xc
call fcn.00405c40
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8b8]
mov byte [esp + 0x944], 0xd
call fcn.00403e10
cmp dword [esp + 0x58], 0x10
jb 0x4047f3
mov edx, dword [esp + 0x44]
push edx
call fcn.00457a6e
add esp, 4
mov byte [esp + 0x938], 4
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x404824
mov eax, dword [esp + 0x24]
push eax
call fcn.00457a6e
add esp, 4
push 0x10
xor ecx, ecx
lea esi, [esp + 0x24]
lea edx, [esp + 0x8b0]
call fcn.00406240
push eax
lea ecx, [esp + 0x920]
lea edi, [esp + 0x68]
mov byte [esp + 0x93c], 0xe
call fcn.00406c50
push ebx
push eax
lea edi, [esp + 0x4c]
mov byte [esp + 0x944], 0xf
call fcn.00406ba0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8d4]
mov byte [esp + 0x944], 0x10
call fcn.00403e10
cmp dword [esp + 0x58], 0x10
jb 0x404894
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00457a6e
add esp, 4
xor esi, esi
mov ebx, 0x10
mov edi, 0xf
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], esi
mov byte [esp + 0x44], 0
cmp dword [esp + 0x7c], ebx
jb 0x4048c0
mov edx, dword [esp + 0x68]
push edx
call fcn.00457a6e
add esp, 4
mov byte [esp + 0x938], 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], esi
mov byte [esp + 0x68], 0
cmp dword [esp + 0x38], ebx
jb 0x40497a
mov eax, dword [esp + 0x24]
push eax
jmp 0x404972
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x54]
push 0xffffffffffffffff
lea esi, [esp + 0x24]
mov edx, ebx
call fcn.00406240
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8b8]
mov byte [esp + 0x944], 0x11
call fcn.00403e10
mov byte [esp + 0x938], 4
cmp dword [esp + 0x38], edi
jb 0x404931
mov edx, dword [esp + 0x24]
push edx
call fcn.00457a6e
add esp, 4
lea eax, [esp + 0x8ac]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00405f40
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8d4]
mov byte [esp + 0x944], 0x12
call fcn.00403e10
mov byte [esp + 0x938], 4
cmp dword [esp + 0x38], edi
jb 0x40497a
mov edx, dword [esp + 0x24]
push edx
call fcn.00457a6e
add esp, 4
mov eax, dword [esp + 0x8dc]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x5c], eax
xor esi, esi
jmp 0x404990
mov eax, esi
cdq
idiv edi
mov dword [esp + esi*4 + 0x8c], esi
mov ebx, edx
cmp ebx, dword [esp + 0x8f8]
jbe 0x4049ac
call fcn.0045808d
cmp dword [esp + 0x8fc], 0x10
mov eax, dword [esp + 0x8e8]
jae 0x4049c4
lea eax, [esp + 0x8e8]
movsx ecx, byte [ebx + eax]
mov dword [esp + esi*4 + 0x48c], ecx
inc esi
cmp esi, 0xff
jle 0x404990
xor edi, edi
xor ecx, ecx
xor eax, eax
mov edi, edi
mov edx, dword [esp + eax + 0x8c]
mov esi, dword [esp + eax + 0x48c]
add esi, edx
add ecx, esi
and ecx, 0x800000ff
jns 0x404a02
dec ecx
or ecx, 0xffffff00
inc ecx
mov esi, dword [esp + ecx*4 + 0x8c]
mov dword [esp + eax + 0x8c], esi
add eax, 4
cmp eax, 0x400
mov dword [esp + ecx*4 + 0x8c], edx
jl 0x4049e0
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x80], edi
jle 0x404b75
mov edx, dword [esp + 0x80]
inc edx
mov eax, edx
and eax, 0x800000ff
jns 0x404a4e
dec eax
or eax, 0xffffff00
inc eax
mov esi, dword [esp + eax*4 + 0x8c]
lea ebx, [esp + eax*4 + 0x8c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x60]
lea ecx, [esi + eax]
mov eax, ecx
and eax, 0x800000ff
jns 0x404a7a
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [esp + eax*4 + 0x8c]
mov dword [esp + 0x60], eax
lea eax, [esp + eax*4 + 0x8c]
mov dword [ebx], edx
mov dword [eax], esi
cmp edi, dword [esp + 0x8dc]
jbe 0x404a9e
call fcn.0045808d
cmp dword [esp + 0x8e0], 0x10
mov eax, dword [esp + 0x8cc]
jae 0x404ab6
lea eax, [esp + 0x8cc]
mov ecx, dword [ebx]
add ecx, esi
and ecx, 0x800000ff
jns 0x404aca
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx*4 + 0x8c]
xor bl, byte [eax + edi]
or edx, 0xffffffff
sub edx, dword [esp + 0x8a4]
cmp edx, 1
ja 0x404ae8
call fcn.0042c943
mov esi, dword [esp + 0x8a4]
inc esi
cmp esi, 0xfffffffe
jbe 0x404afa
call fcn.0042c943
mov eax, dword [esp + 0x8a8]
cmp eax, esi
jae 0x404db0
mov eax, dword [esp + 0x8a4]
push eax
push esi
lea ecx, [esp + 0x898]
call fcn.00403c10
test esi, esi
jbe 0x404b6a
mov eax, dword [esp + 0x894]
mov ecx, 0x10
cmp dword [esp + 0x8a8], ecx
jae 0x404b3e
lea eax, [esp + 0x894]
mov edx, dword [esp + 0x8a4]
mov byte [eax + edx], bl
mov eax, dword [esp + 0x894]
mov dword [esp + 0x8a4], esi
cmp dword [esp + 0x8a8], ecx
jae 0x404b66
lea eax, [esp + 0x894]
mov byte [esi + eax], 0
inc edi
cmp edi, dword [esp + 0x5c]
jl 0x404a36
cmp dword [ebp + 0xc], 0
jne 0x404dda
cmp dword [esp + 0x8a8], 0x10
mov eax, dword [esp + 0x894]
jae 0x404b97
lea eax, [esp + 0x894]
mov ecx, dword [esp + 0x8a4]
push ecx
push eax
lea edi, [esp + 0x28]
call fcn.00405ce0
add esp, 8
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x89c]
mov byte [esp + 0x944], 0x13
call fcn.00403e10
mov byte [esp + 0x938], 4
cmp dword [esp + 0x38], 0x10
jb 0x404be2
mov edx, dword [esp + 0x24]
push edx
call fcn.00457a6e
add esp, 4
push edi
mov esi, 0xf
push 0x47fc7a
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
call fcn.00403880
mov byte [esp + 0x938], 0x14
push 1
push 0x47fd34
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
mov byte [esp + 0x70], 0
call fcn.00403880
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ebx, [esp + 0x48]
lea eax, [esp + 0x898]
mov byte [esp + 0x940], 0x15
call fcn.00405260
mov edi, dword [esp + 0x3c]
push eax
lea edx, [esp + 0x904]
push edx
mov byte [esp + 0x940], 0x16
call fcn.00406ba0
mov esi, 0x10
add esp, 8
cmp dword [esp + 0x38], esi
jb 0x404c85
mov eax, dword [esp + 0x24]
push eax
call fcn.00457a6e
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x7c], esi
jb 0x404cab
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00457a6e
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp dword [esp + 0x58], esi
jb 0x404cca
mov edx, dword [esp + 0x44]
push edx
call fcn.00457a6e
add esp, 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x8a8], esi
jb 0x404cef
mov eax, dword [esp + 0x894]
push eax
call fcn.00457a6e
add esp, 4
mov dword [esp + 0x8a8], edi
mov dword [esp + 0x8a4], ebx
mov byte [esp + 0x894], bl
cmp dword [esp + 0x8c4], esi
jb 0x404d1d
mov ecx, dword [esp + 0x8b0]
push ecx
call fcn.00457a6e
add esp, 4
mov dword [esp + 0x8c4], edi
mov dword [esp + 0x8c0], ebx
mov byte [esp + 0x8b0], bl
cmp dword [esp + 0x8fc], esi
jb 0x404d4b
mov edx, dword [esp + 0x8e8]
push edx
call fcn.00457a6e
add esp, 4
mov dword [esp + 0x8fc], edi
mov dword [esp + 0x8f8], ebx
mov byte [esp + 0x8e8], bl
cmp dword [esp + 0x8e0], esi
jb 0x404d79
mov eax, dword [esp + 0x8cc]
push eax
call fcn.00457a6e
add esp, 4
mov dword [esp + 0x8e0], edi
mov dword [esp + 0x8dc], ebx
mov byte [esp + 0x8cc], bl
cmp dword [esp + 0x918], esi
jb 0x404da7
mov ecx, dword [esp + 0x904]
push ecx
call fcn.00457a6e
add esp, 4
mov eax, dword [esp + 0x3c]
jmp 0x405231
test esi, esi
jne 0x404b20
cmp eax, 0x10
mov eax, dword [esp + 0x894]
mov dword [esp + 0x8a4], esi
jae 0x404dd2
lea eax, [esp + 0x894]
mov byte [eax], 0
jmp 0x404b6a
cmp dword [esp + 0x8a4], 0x1a
jbe 0x405133
push 0xa
xor ecx, ecx
lea esi, [esp + 0x24]
lea edx, [esp + 0x894]
call fcn.00406240
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x404e0b
mov eax, dword [eax + 4]
jmp 0x404e0e
add eax, 4
push eax
call fcn.0045810f
add esp, 4
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x38], esi
jb 0x404e2e
mov edx, dword [esp + 0x24]
push edx
call fcn.00457a6e
add esp, 4
push 0xffffffffffffffff
mov ecx, 0x1a
lea esi, [esp + 0x68]
lea edx, [esp + 0x894]
call fcn.00406240
mov ecx, dword [esp + 0x18]
add ecx, 0x38
push ecx
push eax
lea edi, [esp + 0x48]
mov byte [esp + 0x940], 0x17
call fcn.00406ba0
add esp, 8
mov esi, dword [esp + 0x84]
mov ecx, eax
lea eax, [esp + 0x20]
mov byte [esp + 0x938], 0x18
call fcn.00405c40
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x8b8]
mov byte [esp + 0x944], 0x19
call fcn.00403e10
mov esi, 0x10
cmp dword [esp + 0x38], esi
jb 0x404eae
mov edx, dword [esp + 0x24]
push edx
call fcn.00457a6e
add esp, 4
mov edi, 0xf
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], 0
cmp dword [esp + 0x58], esi
jb 0x404ed3
mov eax, dword [esp + 0x44]
push eax
call fcn.00457a6e
add esp, 4
mov byte [esp + 0x938], 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], 0
cmp dword [esp + 0x7c], esi
jb 0x404efb
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00457a6e
add esp, 4
mov esi, dword [esp + 0x5c]
cmp esi, ebx
je 0x404f2e
push ebx
call fcn.004580a8
mov ecx, eax
mov edi, edx
mov eax, esi
cdq
add esp, 4
sub eax, ecx
sbb edx, edi
mov dword [esp + 0x88], edx
js 0x404fc2
jg 0x404f2e
cmp eax, ebx
jbe 0x404fc2
push 0x10
xor ecx, ecx
lea esi, [esp + 0x44]
lea edx, [esp + 0x8b0]
call fcn.00406240
mov edi, eax
mov byte [esp + 0x938], 0x1a
push 0x10
mov ecx, 0xa
lea esi, [esp + 0x24]
lea edx, [esp + 0x894]
mov dword [esp + 0x20], 2
call fcn.00406240
cmp dword [edi + 0x18], 0x10
mov ebx, dword [edi + 0x14]
mov dword [esp + 0x1c], 6
jb 0x404f81
mov edi, dword [edi + 4]
jmp 0x404f84
add edi, 4
mov esi, dword [eax + 0x14]
mov edx, esi
cmp edx, esi
jae 0x404f8d
mov ecx, esi
cmp esi, ebx
jb 0x404f95
mov ecx, ebx
cmp dword [eax + 0x18], 0x10
jb 0x404fa0
mov edx, dword [eax + 4]
jmp 0x404fa3
lea edx, [eax + 4]
mov eax, ecx
mov ecx, edi
call fcn.004071d0
test eax, eax
jne 0x404fc2
cmp esi, ebx
jb 0x404fc2
cmp esi, ebx
setne al
mov byte [esp + 0x17], 1
test eax, eax
je 0x404fc7
mov byte [esp + 0x17], 0
test byte [esp + 0x1c], 4
mov edi, 0x10
je 0x405003
and dword [esp + 0x1c], 0xfffffffb
cmp dword [esp + 0x38], edi
jb 0x404feb
mov edx, dword [esp + 0x24]
push edx
call fcn.00457a6e
add esp, 4
mov ebx, 0xf
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jmp 0x405008
mov ebx, 0xf
mov dword [esp + 0x938], 4
test byte [esp + 0x1c], 2
je 0x40502d
cmp dword [esp + 0x58], edi
jb 0x40502d
mov eax, dword [esp + 0x44]
push eax
call fcn.00457a6e
add esp, 4
cmp byte [esp + 0x17], 0
je 0x405133
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
mov ecx, 0x1a
lea edx, [esp + 0x894]
call fcn.00406240
cmp dword [esp + 0x8a8], edi
jb 0x405068
mov ecx, dword [esp + 0x894]
push ecx
call fcn.00457a6e
add esp, 4
xor esi, esi
mov dword [esp + 0x8a8], ebx
mov dword [esp + 0x8a4], esi
mov byte [esp + 0x894], 0
cmp dword [esp + 0x8c4], edi
jb 0x405099
mov edx, dword [esp + 0x8b0]
push edx
call fcn.00457a6e
add esp, 4
mov dword [esp + 0x8c4], ebx
mov dword [esp + 0x8c0], esi
mov byte [esp + 0x8b0], 0
cmp dword [esp + 0x8fc], edi
jb 0x4050c8
mov eax, dword [esp + 0x8e8]
push eax
call fcn.00457a6e
add esp, 4
mov dword [esp + 0x8fc], ebx
mov dword [esp + 0x8f8], esi
mov byte [esp + 0x8e8], 0
cmp dword [esp + 0x8e0], edi
jb 0x4050f7
mov ecx, dword [esp + 0x8cc]
push ecx
call fcn.00457a6e
add esp, 4
mov dword [esp + 0x8e0], ebx
mov dword [esp + 0x8dc], esi
mov byte [esp + 0x8cc], 0
cmp dword [esp + 0x918], edi
jb 0x404da7
mov edx, dword [esp + 0x904]
push edx
call fcn.00457a6e
mov eax, dword [esp + 0x40]
add esp, 4
jmp 0x405231
mov esi, dword [esp + 0x3c]
xor edi, edi
push edi
mov ebx, 0xf
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
push 0x47fc7a
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00403880
cmp dword [esp + 0x8a8], 0x10
jb 0x40516f
mov eax, dword [esp + 0x894]
push eax
call fcn.00457a6e
add esp, 4
cmp dword [esp + 0x8c4], 0x10
mov dword [esp + 0x8a8], ebx
mov dword [esp + 0x8a4], edi
mov byte [esp + 0x894], 0
jb 0x40519f
mov ecx, dword [esp + 0x8b0]
push ecx
call fcn.00457a6e
add esp, 4
cmp dword [esp + 0x8fc], 0x10
mov dword [esp + 0x8c4], ebx
mov dword [esp + 0x8c0], edi
mov byte [esp + 0x8b0], 0
jb 0x4051cf
mov edx, dword [esp + 0x8e8]
push edx
call fcn.00457a6e
add esp, 4
cmp dword [esp + 0x8e0], 0x10
mov dword [esp + 0x8fc], ebx
mov dword [esp + 0x8f8], edi
mov byte [esp + 0x8e8], 0
jb 0x4051ff
mov eax, dword [esp + 0x8cc]
push eax
call fcn.00457a6e
add esp, 4
cmp dword [esp + 0x918], 0x10
mov dword [esp + 0x8e0], ebx
mov dword [esp + 0x8dc], edi
mov byte [esp + 0x8cc], 0
jb 0x40522f
mov ecx, dword [esp + 0x904]
push ecx
call fcn.00457a6e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x930]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x918]
xor ecx, esp
call fcn.00457a79
mov esp, ebp
pop ebp
ret 8