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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x441fba
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x45166c]
xor eax, esp
mov dword [esp + 0x368], eax
push ebx
push esi
push edi
mov eax, dword [0x45166c]
xor eax, esp
push eax
lea eax, [esp + 0x380]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x330]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x32c], ecx
mov byte [esp + 0x330], bl
lea edx, [esp + 0x32c]
push edx
mov dword [esp + 0x38c], ebx
call fcn.00406790
mov ecx, dword [esp + 0x32c]
mov edi, 0xf
mov eax, ecx
mov dword [esp + 0x144], edi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405878
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x138]
call fcn.00408f60
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x134]
mov byte [esp + 0x38c], 1
call fcn.00407c50
mov dword [esp + 0x124], edi
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], 0
push 0x10
mov byte [esp + 0x38c], 3
call fcn.00423e3d
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x388], 4
cmp eax, ebx
je 0x4058ee
mov edi, eax
mov byte [esp + 0x14], 0
call fcn.0040c030
jmp 0x4058f0
xor eax, eax
mov dword [esp + 0x12c], eax
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x38c], 5
call fcn.0040aec0
mov ecx, dword [esp + 0x130]
add ecx, 9
add esp, 4
cmp ecx, ebx
je 0x405926
lea eax, [ecx - 9]
jmp 0x405928
xor eax, eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x4c]
cmp eax, ebx
je 0x405937
add eax, 0xffffffb8
jmp 0x405939
xor eax, eax
cmp ecx, ebx
je 0x405942
add ecx, 0xfffffff7
jmp 0x405944
xor ecx, ecx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x406443
jmp 0x405960
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x194]
lea ecx, [esp + 0x1d8]
mov dword [esp + 0x190], edx
mov dword [esp + 0x1d4], ecx
lea edx, [esp + 0x21c]
lea ecx, [esp + 0x260]
mov dword [esp + 0x218], edx
mov dword [esp + 0x25c], ecx
lea eax, [esp + 0x150]
lea edx, [esp + 0x2a4]
lea ecx, [esp + 0x2e8]
mov dword [esp + 0x14c], eax
mov byte [esp + 0x150], 0
mov byte [esp + 0x194], 0
mov byte [esp + 0x1d8], 0
mov byte [esp + 0x21c], 0
mov byte [esp + 0x260], 0
mov dword [esp + 0x2a0], edx
mov byte [esp + 0x2a4], 0
mov dword [esp + 0x2e4], ecx
mov byte [esp + 0x2e8], 0
mov byte [esp + 0x388], 6
cmp dword [ebx + 0x14], 0x10
jb 0x405a10
mov edi, dword [ebx]
jmp 0x405a12
mov edi, ebx
test edi, edi
jne 0x405a1b
mov edi, 0x4468c1
mov ecx, edi
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405a20
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x405a50
lea edx, [esi + 1]
push edx
push 0
mov dword [esp + 0x154], 0
call fcn.00424f55
add esp, 8
mov dword [esp + 0x14c], eax
push esi
push edi
push eax
call fcn.00424ca5
mov eax, dword [esp + 0x158]
add esp, 0xc
push 2
mov edi, 0xf
push 0x44706c
lea ecx, [esp + 0xd8]
mov byte [esi + eax], 0
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], 0
mov byte [esp + 0xd8], 0
call fcn.00408f60
cmp dword [esp + 0xe4], 0x10
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
jae 0x405ab8
lea eax, [esp + 0xd0]
mov dword [esp + 0xf0], eax
lea esi, [ebx + 0x1c]
lea edx, [esp + 0xd0]
lea eax, [esp + 0xf4]
mov ecx, esi
mov byte [esp + 0x388], 7
mov dword [esp + 0x20], esi
call fcn.0040bbf0
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x405aef
mov eax, dword [eax]
push eax
lea eax, [esp + 0x194]
call fcn.00413d70
cmp dword [esp + 0x108], ebx
jb 0x405b15
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00423dcd
add esp, 4
mov byte [esp + 0x388], 6
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
cmp dword [esp + 0xe4], ebx
jb 0x405b50
mov edx, dword [esp + 0xd0]
push edx
call fcn.00423dcd
add esp, 4
push 4
push str.Name
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], 0
mov byte [esp + 0xd8], 0
call fcn.00408f60
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], ebx
jae 0x405b9c
lea eax, [esp + 0xd0]
mov dword [esp + 0xf0], eax
lea edx, [esp + 0xd0]
lea eax, [esp + 0xf4]
mov ecx, esi
mov byte [esp + 0x388], 8
call fcn.0040bbf0
cmp dword [eax + 0x14], ebx
jb 0x405bc9
mov ebx, dword [eax]
jmp 0x405bcb
mov ebx, eax
test ebx, ebx
jne 0x405bd4
mov ebx, 0x4468c1
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405be0
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x1d4]
cmp esi, 0x3f
jge 0x405c14
lea ecx, [esp + 0x1d8]
cmp eax, ecx
je 0x405c62
push eax
call fcn.004244b1
add esp, 4
lea eax, [esp + 0x1d8]
jmp 0x405c5b
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405c20
sub ecx, edi
cmp esi, ecx
jg 0x405c3a
lea edx, [esp + 0x1d8]
cmp eax, edx
jne 0x405c62
jmp 0x405c45
lea ecx, [esp + 0x1d8]
cmp eax, ecx
jne 0x405c4e
xor eax, eax
mov dword [esp + 0x1d4], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00424f55
add esp, 8
mov dword [esp + 0x1d4], eax
push esi
push ebx
push eax
call fcn.00424ca5
mov eax, dword [esp + 0x1e0]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x405c96
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00423dcd
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov byte [esp + 0x388], 6
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
cmp dword [esp + 0xe4], esi
jb 0x405cd3
mov edx, dword [esp + 0xd0]
push edx
call fcn.00423dcd
add esp, 4
push 4
push str.Urle
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
call fcn.00408f60
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x405d1a
lea eax, [esp + 0xd0]
mov dword [esp + 0xf0], eax
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xd0]
lea eax, [esp + 0xf4]
mov byte [esp + 0x388], 9
call fcn.0040bbf0
cmp dword [eax + 0x14], esi
jb 0x405d49
mov ebx, dword [eax]
jmp 0x405d4b
mov ebx, eax
test ebx, ebx
jne 0x405d54
mov ebx, 0x4468c1
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d60
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x218]
cmp esi, 0x3f
jge 0x405d94
lea ecx, [esp + 0x21c]
cmp eax, ecx
je 0x405de2
push eax
call fcn.004244b1
add esp, 4
lea eax, [esp + 0x21c]
jmp 0x405ddb
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405da0
sub ecx, edi
cmp esi, ecx
jg 0x405dba
lea edx, [esp + 0x21c]
cmp eax, edx
jne 0x405de2
jmp 0x405dc5
lea ecx, [esp + 0x21c]
cmp eax, ecx
jne 0x405dce
xor eax, eax
mov dword [esp + 0x218], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00424f55
add esp, 8
mov dword [esp + 0x218], eax
push esi
push ebx
push eax
call fcn.00424ca5
mov eax, dword [esp + 0x224]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x405e16
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00423dcd
add esp, 4
xor edi, edi
mov ebx, 0xf
mov byte [esp + 0x388], 6
mov dword [esp + 0x108], ebx
mov dword [esp + 0x104], edi
mov byte [esp + 0xf4], 0
cmp dword [esp + 0xe4], esi
jb 0x405e54
mov edx, dword [esp + 0xd0]
push edx
call fcn.00423dcd
add esp, 4
push 3
push 0x447080
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], ebx
mov dword [esp + 0xe8], edi
mov byte [esp + 0xd8], 0
call fcn.00408f60
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x405e9c
lea eax, [esp + 0xd0]
mov dword [esp + 0xf0], eax
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xd0]
lea eax, [esp + 0xf4]
mov byte [esp + 0x388], 0xa
call fcn.0040bbf0
cmp dword [eax + 0x14], esi
jb 0x405ecb
mov ebx, dword [eax]
jmp 0x405ecd
mov ebx, eax
test ebx, ebx
jne 0x405ed6
mov ebx, 0x4468c1
mov eax, ebx
lea edx, [eax + 1]
jmp 0x405ee0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ee0
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x25c]
cmp esi, 0x3f
jge 0x405f14
lea ecx, [esp + 0x260]
cmp eax, ecx
je 0x405f62
push eax
call fcn.004244b1
add esp, 4
lea eax, [esp + 0x260]
jmp 0x405f5b
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405f20
sub ecx, edi
cmp esi, ecx
jg 0x405f3a
lea edx, [esp + 0x260]
cmp eax, edx
jne 0x405f62
jmp 0x405f45
lea ecx, [esp + 0x260]
cmp eax, ecx
jne 0x405f4e
xor eax, eax
mov dword [esp + 0x25c], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00424f55
add esp, 8
mov dword [esp + 0x25c], eax
push esi
push ebx
push eax
call fcn.00424ca5
mov eax, dword [esp + 0x268]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x405f96
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00423dcd
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov byte [esp + 0x388], 6
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
cmp dword [esp + 0xe4], esi
jb 0x405fd3
mov edx, dword [esp + 0xd0]
push edx
call fcn.00423dcd
add esp, 4
push 5
push str.Param
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
call fcn.00408f60
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x40601a
lea eax, [esp + 0xd0]
mov dword [esp + 0xf0], eax
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xd0]
lea eax, [esp + 0xf4]
mov byte [esp + 0x388], 0xb
call fcn.0040bbf0
cmp dword [eax + 0x14], esi
jb 0x406049
mov ebx, dword [eax]
jmp 0x40604b
mov ebx, eax
test ebx, ebx
jne 0x406054
mov ebx, 0x4468c1
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406060
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x2a0]
cmp esi, 0x3f
jge 0x406094
lea ecx, [esp + 0x2a4]
cmp eax, ecx
je 0x4060e2
push eax
call fcn.004244b1
add esp, 4
lea eax, [esp + 0x2a4]
jmp 0x4060db
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4060a0
sub ecx, edi
cmp esi, ecx
jg 0x4060ba
lea edx, [esp + 0x2a4]
cmp eax, edx
jne 0x4060e2
jmp 0x4060c5
lea ecx, [esp + 0x2a4]
cmp eax, ecx
jne 0x4060ce
xor eax, eax
mov dword [esp + 0x2a0], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00424f55
add esp, 8
mov dword [esp + 0x2a0], eax
push esi
push ebx
push eax
call fcn.00424ca5
mov eax, dword [esp + 0x2ac]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x406116
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00423dcd
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov byte [esp + 0x388], 6
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
cmp dword [esp + 0xe4], esi
jb 0x406153
mov edx, dword [esp + 0xd0]
push edx
call fcn.00423dcd
add esp, 4
push 3
push 0x44708c
lea ecx, [esp + 0xfc]
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
call fcn.00408f60
mov byte [esp + 0x388], 0xc
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
cmp eax, ebx
je 0x40619a
lea ecx, [eax + 9]
cmp ecx, ebx
je 0x40619a
add ecx, 0xfffffff7
jmp 0x40619c
xor ecx, ecx
mov esi, dword [ecx + 4]
cmp eax, ebx
je 0x4061af
add eax, 9
cmp eax, ebx
je 0x4061b1
lea ecx, [eax - 9]
jmp 0x4061b3
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 4]
cmp eax, ebx
je 0x4061bf
add eax, 0xfffffff7
jmp 0x4061c1
xor eax, eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c]
and eax, 0xfffffffe
je 0x4061d1
add eax, 0xffffffc4
jmp 0x4061d3
xor eax, eax
lea edx, [esp + 0xf4]
push edx
push ecx
call fcn.0040d530
add esp, 8
cmp eax, esi
mov esi, 0x10
setne bl
mov byte [esp + 0x388], 6
cmp dword [esp + 0x108], esi
jb 0x40620f
mov eax, dword [esp + 0xf4]
push eax
call fcn.00423dcd
add esp, 4
test bl, bl
je 0x406346
push 3
push 0x44708c
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], 0
mov byte [esp + 0xd8], 0
call fcn.00408f60
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x406267
lea eax, [esp + 0xd0]
mov dword [esp + 0xf0], eax
sub esp, 0x1c
mov ecx, esp
mov bl, 0xd
mov byte [esp + 0x3a4], bl
mov dword [esp + 0x44], esp
push 3
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], 0
push 0x447090
or esi, 0xffffffff
mov byte [ecx], 0
call fcn.00408f60
mov ecx, dword [esp + 0x3c]
sub esp, 0x1c
mov byte [esp + 0x3c0], 0xe
lea edx, [esp + 0x108]
mov eax, esp
mov dword [esp + 0x5c], esp
call fcn.0040bbf0
lea ecx, [esp + 0x12c]
mov byte [esp + 0x3c0], bl
call fcn.0041da00
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x4062e1
mov eax, dword [eax]
push eax
mov eax, esi
lea esi, [esp + 0x2e8]
call fcn.00413e70
cmp dword [esp + 0x108], ebx
jb 0x406309
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00423dcd
add esp, 4
mov byte [esp + 0x388], 6
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
cmp dword [esp + 0xe4], ebx
jb 0x40638a
mov edx, dword [esp + 0xd0]
push edx
call fcn.00423dcd
add esp, 4
jmp 0x40638a
mov eax, dword [esp + 0x2e4]
lea ecx, [esp + 0x2e8]
cmp eax, ecx
je 0x40636f
push eax
call fcn.004244b1
lea eax, [esp + 0x2ec]
add esp, 4
mov dword [esp + 0x2e4], eax
push 1
push 0x447094
push eax
call fcn.00424ca5
mov edx, dword [esp + 0x2f0]
add esp, 0xc
mov byte [edx + 1], 0
mov ebx, dword [esp + 0x18]
mov edi, dword [ebx + 4]
lea eax, [esp + 0x14c]
cmp eax, edi
jae 0x4063db
mov eax, dword [ebx]
lea ecx, [esp + 0x14c]
cmp eax, ecx
ja 0x4063db
sub ecx, eax
mov eax, 0x44d72045
imul ecx
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebx + 8]
jne 0x4063c8
mov ecx, ebx
call fcn.00403b10
mov edi, dword [ebx + 4]
imul esi, esi, 0x1dc
add esi, dword [ebx]
test edi, edi
je 0x4063fe
mov ebx, esi
jmp 0x4063f5
cmp edi, dword [ebx + 8]
jne 0x4063e7
mov ecx, ebx
call fcn.00403b10
mov edi, dword [ebx + 4]
test edi, edi
je 0x4063fe
lea ebx, [esp + 0x14c]
call fcn.00404320
mov ebx, dword [esp + 0x18]
add dword [ebx + 4], 0x1dc
lea eax, [esp + 0x14c]
mov byte [esp + 0x388], 5
call fcn.004031a0
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x40642d
add eax, 0xffffffb8
mov dword [esp + 0x14], eax
jmp 0x406435
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jne 0x405960
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 4]
mov edi, dword [eax]
mov ecx, esi
sub ecx, edi
mov eax, 0x44d72045
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
push 0x4057a0
add ecx, edx
push ecx
push esi
push edi
call fcn.0040c850
add esp, 0x10
mov eax, dword [esp + 0x12c]
xor ebx, ebx
mov esi, eax
mov dword [esp + 0x24], esi
cmp eax, ebx
je 0x4064aa
add eax, 9
push eax
mov byte [esp + 0x38c], 0x10
call fcn.0040c280
mov eax, dword [esi + 4]
push eax
call fcn.00423dcd
add esp, 4
push esi
call fcn.00423dcd
add esp, 4
cmp dword [esp + 0x124], 0x10
jb 0x4064c4
mov edx, dword [esp + 0x110]
push edx
call fcn.00423dcd
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x124], 0xf
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], 0
mov edx, dword [ecx + 4]
lea eax, [esp + 0x84]
mov dword [esp + 0x24], eax
mov dword [esp + edx + 0x2c], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
test byte [esp + 0x7c], 1
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
je 0x40651e
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
push eax
call fcn.00423dcd
add esp, 4
mov edx, dword [esp + 0x4c]
mov dword [edx], ebx
mov eax, dword [esp + 0x5c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x6c]
mov dword [ecx], ebx
mov edx, dword [esp + 0x50]
mov dword [edx], ebx
mov eax, dword [esp + 0x60]
mov dword [eax], ebx
mov ecx, dword [esp + 0x70]
mov dword [ecx], ebx
and dword [esp + 0x7c], 0xfffffffe
mov dword [esp + 0x78], ebx
mov dword [esp + 0x3c], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x388], 0x12
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4065b6
mov edi, dword [eax]
cmp edi, ebx
je 0x4065a9
push ebx
lea ecx, [esp + 0x20]
call fcn.004234a3
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x406587
cmp eax, 0xffffffff
jae 0x406587
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x1c]
and esi, edi
call fcn.004234cb
cmp esi, ebx
je 0x4065a9
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00423dcd
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x388], 0x11
call fcn.004234fc
mov byte [esp + 0x388], 1
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x84]
mov dword [esp + eax + 0x2c], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push ecx
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.004230af
add esp, 4
cmp dword [esp + 0x144], 0x10
jb 0x406613
mov edx, dword [esp + 0x130]
push edx
call fcn.00423dcd
add esp, 4
mov eax, dword [esp + 0x32c]
lea ecx, [esp + 0x330]
mov dword [esp + 0x144], 0xf
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], 0
cmp eax, ecx
je 0x406648
push eax
call fcn.004244b1
add esp, 4
mov ecx, dword [esp + 0x380]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x368]
xor ecx, esp
call fcn.0042396b
mov esp, ebp
pop ebp
ret 4