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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4413ea
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x45066c]
xor eax, esp
mov dword [esp + 0x368], eax
push ebx
push esi
push edi
mov eax, dword [0x45066c]
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.004060f0
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 0x4051d8
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x138]
call fcn.004088e0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x134]
mov byte [esp + 0x38c], 1
call fcn.004075d0
mov dword [esp + 0x124], edi
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], 0
push 0x10
mov byte [esp + 0x38c], 3
call fcn.00423460
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x388], 4
cmp eax, ebx
je 0x40524e
mov edi, eax
mov byte [esp + 0x14], 0
call fcn.0040b990
jmp 0x405250
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.0040a820
mov ecx, dword [esp + 0x130]
add ecx, 9
add esp, 4
cmp ecx, ebx
je 0x405286
lea eax, [ecx - 9]
jmp 0x405288
xor eax, eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x4c]
cmp eax, ebx
je 0x405297
add eax, 0xffffffb8
jmp 0x405299
xor eax, eax
cmp ecx, ebx
je 0x4052a2
add ecx, 0xfffffff7
jmp 0x4052a4
xor ecx, ecx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x405da3
jmp 0x4052c0
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 0x405370
mov edi, dword [ebx]
jmp 0x405372
mov edi, ebx
test edi, edi
jne 0x40537b
mov edi, 0x4457f5
mov ecx, edi
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405380
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x4053b0
lea edx, [esi + 1]
push edx
push 0
mov dword [esp + 0x154], 0
call fcn.00424575
add esp, 8
mov dword [esp + 0x14c], eax
push esi
push edi
push eax
call fcn.004242c5
mov eax, dword [esp + 0x158]
add esp, 0xc
push 2
mov edi, 0xf
push 0x445ed4
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.004088e0
cmp dword [esp + 0xe4], 0x10
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
jae 0x405418
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.0040b550
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x40544f
mov eax, dword [eax]
push eax
lea eax, [esp + 0x194]
call fcn.004136c0
cmp dword [esp + 0x108], ebx
jb 0x405475
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.004233f0
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 0x4054b0
mov edx, dword [esp + 0xd0]
push edx
call fcn.004233f0
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.004088e0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], ebx
jae 0x4054fc
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.0040b550
cmp dword [eax + 0x14], ebx
jb 0x405529
mov ebx, dword [eax]
jmp 0x40552b
mov ebx, eax
test ebx, ebx
jne 0x405534
mov ebx, 0x4457f5
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405540
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x1d4]
cmp esi, 0x3f
jge 0x405574
lea ecx, [esp + 0x1d8]
cmp eax, ecx
je 0x4055c2
push eax
call fcn.00423ad1
add esp, 4
lea eax, [esp + 0x1d8]
jmp 0x4055bb
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405580
sub ecx, edi
cmp esi, ecx
jg 0x40559a
lea edx, [esp + 0x1d8]
cmp eax, edx
jne 0x4055c2
jmp 0x4055a5
lea ecx, [esp + 0x1d8]
cmp eax, ecx
jne 0x4055ae
xor eax, eax
mov dword [esp + 0x1d4], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00424575
add esp, 8
mov dword [esp + 0x1d4], eax
push esi
push ebx
push eax
call fcn.004242c5
mov eax, dword [esp + 0x1e0]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x4055f6
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.004233f0
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 0x405633
mov edx, dword [esp + 0xd0]
push edx
call fcn.004233f0
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.004088e0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x40567a
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.0040b550
cmp dword [eax + 0x14], esi
jb 0x4056a9
mov ebx, dword [eax]
jmp 0x4056ab
mov ebx, eax
test ebx, ebx
jne 0x4056b4
mov ebx, 0x4457f5
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4056c0
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x218]
cmp esi, 0x3f
jge 0x4056f4
lea ecx, [esp + 0x21c]
cmp eax, ecx
je 0x405742
push eax
call fcn.00423ad1
add esp, 4
lea eax, [esp + 0x21c]
jmp 0x40573b
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405700
sub ecx, edi
cmp esi, ecx
jg 0x40571a
lea edx, [esp + 0x21c]
cmp eax, edx
jne 0x405742
jmp 0x405725
lea ecx, [esp + 0x21c]
cmp eax, ecx
jne 0x40572e
xor eax, eax
mov dword [esp + 0x218], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00424575
add esp, 8
mov dword [esp + 0x218], eax
push esi
push ebx
push eax
call fcn.004242c5
mov eax, dword [esp + 0x224]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x405776
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.004233f0
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 0x4057b4
mov edx, dword [esp + 0xd0]
push edx
call fcn.004233f0
add esp, 4
push 3
push 0x445ee8
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], ebx
mov dword [esp + 0xe8], edi
mov byte [esp + 0xd8], 0
call fcn.004088e0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x4057fc
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.0040b550
cmp dword [eax + 0x14], esi
jb 0x40582b
mov ebx, dword [eax]
jmp 0x40582d
mov ebx, eax
test ebx, ebx
jne 0x405836
mov ebx, 0x4457f5
mov eax, ebx
lea edx, [eax + 1]
jmp 0x405840
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405840
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x25c]
cmp esi, 0x3f
jge 0x405874
lea ecx, [esp + 0x260]
cmp eax, ecx
je 0x4058c2
push eax
call fcn.00423ad1
add esp, 4
lea eax, [esp + 0x260]
jmp 0x4058bb
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405880
sub ecx, edi
cmp esi, ecx
jg 0x40589a
lea edx, [esp + 0x260]
cmp eax, edx
jne 0x4058c2
jmp 0x4058a5
lea ecx, [esp + 0x260]
cmp eax, ecx
jne 0x4058ae
xor eax, eax
mov dword [esp + 0x25c], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00424575
add esp, 8
mov dword [esp + 0x25c], eax
push esi
push ebx
push eax
call fcn.004242c5
mov eax, dword [esp + 0x268]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x4058f6
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.004233f0
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 0x405933
mov edx, dword [esp + 0xd0]
push edx
call fcn.004233f0
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.004088e0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x40597a
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.0040b550
cmp dword [eax + 0x14], esi
jb 0x4059a9
mov ebx, dword [eax]
jmp 0x4059ab
mov ebx, eax
test ebx, ebx
jne 0x4059b4
mov ebx, 0x4457f5
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4059c0
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x2a0]
cmp esi, 0x3f
jge 0x4059f4
lea ecx, [esp + 0x2a4]
cmp eax, ecx
je 0x405a42
push eax
call fcn.00423ad1
add esp, 4
lea eax, [esp + 0x2a4]
jmp 0x405a3b
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405a00
sub ecx, edi
cmp esi, ecx
jg 0x405a1a
lea edx, [esp + 0x2a4]
cmp eax, edx
jne 0x405a42
jmp 0x405a25
lea ecx, [esp + 0x2a4]
cmp eax, ecx
jne 0x405a2e
xor eax, eax
mov dword [esp + 0x2a0], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00424575
add esp, 8
mov dword [esp + 0x2a0], eax
push esi
push ebx
push eax
call fcn.004242c5
mov eax, dword [esp + 0x2ac]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x405a76
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.004233f0
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 0x405ab3
mov edx, dword [esp + 0xd0]
push edx
call fcn.004233f0
add esp, 4
push 3
push 0x445ef4
lea ecx, [esp + 0xfc]
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
call fcn.004088e0
mov byte [esp + 0x388], 0xc
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
cmp eax, ebx
je 0x405afa
lea ecx, [eax + 9]
cmp ecx, ebx
je 0x405afa
add ecx, 0xfffffff7
jmp 0x405afc
xor ecx, ecx
mov esi, dword [ecx + 4]
cmp eax, ebx
je 0x405b0f
add eax, 9
cmp eax, ebx
je 0x405b11
lea ecx, [eax - 9]
jmp 0x405b13
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 4]
cmp eax, ebx
je 0x405b1f
add eax, 0xfffffff7
jmp 0x405b21
xor eax, eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c]
and eax, 0xfffffffe
je 0x405b31
add eax, 0xffffffc4
jmp 0x405b33
xor eax, eax
lea edx, [esp + 0xf4]
push edx
push ecx
call fcn.0040ce90
add esp, 8
cmp eax, esi
mov esi, 0x10
setne bl
mov byte [esp + 0x388], 6
cmp dword [esp + 0x108], esi
jb 0x405b6f
mov eax, dword [esp + 0xf4]
push eax
call fcn.004233f0
add esp, 4
test bl, bl
je 0x405ca6
push 3
push 0x445ef4
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], 0
mov byte [esp + 0xd8], 0
call fcn.004088e0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x405bc7
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 0x445ef8
or esi, 0xffffffff
mov byte [ecx], 0
call fcn.004088e0
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.0040b550
lea ecx, [esp + 0x12c]
mov byte [esp + 0x3c0], bl
call fcn.0041d160
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x405c41
mov eax, dword [eax]
push eax
mov eax, esi
lea esi, [esp + 0x2e8]
call fcn.004137c0
cmp dword [esp + 0x108], ebx
jb 0x405c69
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.004233f0
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 0x405cea
mov edx, dword [esp + 0xd0]
push edx
call fcn.004233f0
add esp, 4
jmp 0x405cea
mov eax, dword [esp + 0x2e4]
lea ecx, [esp + 0x2e8]
cmp eax, ecx
je 0x405ccf
push eax
call fcn.00423ad1
lea eax, [esp + 0x2ec]
add esp, 4
mov dword [esp + 0x2e4], eax
push 1
push 0x445efc
push eax
call fcn.004242c5
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 0x405d3b
mov eax, dword [ebx]
lea ecx, [esp + 0x14c]
cmp eax, ecx
ja 0x405d3b
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 0x405d28
mov ecx, ebx
call fcn.00403400
mov edi, dword [ebx + 4]
imul esi, esi, 0x1dc
add esi, dword [ebx]
test edi, edi
je 0x405d5e
mov ebx, esi
jmp 0x405d55
cmp edi, dword [ebx + 8]
jne 0x405d47
mov ecx, ebx
call fcn.00403400
mov edi, dword [ebx + 4]
test edi, edi
je 0x405d5e
lea ebx, [esp + 0x14c]
call fcn.00403c10
mov ebx, dword [esp + 0x18]
add dword [ebx + 4], 0x1dc
lea eax, [esp + 0x14c]
mov byte [esp + 0x388], 5
call fcn.00402e90
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x405d8d
add eax, 0xffffffb8
mov dword [esp + 0x14], eax
jmp 0x405d95
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jne 0x4052c0
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 0x405100
add ecx, edx
push ecx
push esi
push edi
call fcn.0040c1b0
add esp, 0x10
mov eax, dword [esp + 0x12c]
xor ebx, ebx
mov esi, eax
mov dword [esp + 0x24], esi
cmp eax, ebx
je 0x405e0a
add eax, 9
push eax
mov byte [esp + 0x38c], 0x10
call fcn.0040bbe0
mov eax, dword [esi + 4]
push eax
call fcn.004233f0
add esp, 4
push esi
call fcn.004233f0
add esp, 4
cmp dword [esp + 0x124], 0x10
jb 0x405e24
mov edx, dword [esp + 0x110]
push edx
call fcn.004233f0
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 0x405e7e
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
push eax
call fcn.004233f0
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 0x405f16
mov edi, dword [eax]
cmp edi, ebx
je 0x405f09
push ebx
lea ecx, [esp + 0x20]
call fcn.00422b78
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x405ee7
cmp eax, 0xffffffff
jae 0x405ee7
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.00422ba0
cmp esi, ebx
je 0x405f09
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004233f0
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x388], 0x11
call fcn.00422bd1
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.00422784
add esp, 4
cmp dword [esp + 0x144], 0x10
jb 0x405f73
mov edx, dword [esp + 0x130]
push edx
call fcn.004233f0
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 0x405fa8
push eax
call fcn.00423ad1
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.0042304b
mov esp, ebp
pop ebp
ret 4