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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fb9a
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x46166c]
xor eax, esp
mov dword [esp + 0x368], eax
push ebx
push esi
push edi
mov eax, dword [0x46166c]
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.00407180
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 0x406268
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x138]
call fcn.004099d0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x134]
mov byte [esp + 0x38c], 1
call fcn.00408690
mov dword [esp + 0x124], edi
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], 0
push 0x10
mov byte [esp + 0x38c], 3
call fcn.0042f140
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x388], 4
cmp eax, ebx
je 0x4062de
mov edi, eax
mov byte [esp + 0x14], 0
call fcn.0040c9c0
jmp 0x4062e0
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.0040b910
mov ecx, dword [esp + 0x130]
add ecx, 9
add esp, 4
cmp ecx, ebx
je 0x406316
lea eax, [ecx - 9]
jmp 0x406318
xor eax, eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x4c]
cmp eax, ebx
je 0x406327
add eax, 0xffffffb8
jmp 0x406329
xor eax, eax
cmp ecx, ebx
je 0x406332
add ecx, 0xfffffff7
jmp 0x406334
xor ecx, ecx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x406e33
jmp 0x406350
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 0x406400
mov edi, dword [ebx]
jmp 0x406402
mov edi, ebx
test edi, edi
jne 0x40640b
mov edi, 0x454939
mov ecx, edi
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406410
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x406440
lea edx, [esi + 1]
push edx
push 0
mov dword [esp + 0x154], 0
call fcn.00430799
add esp, 8
mov dword [esp + 0x14c], eax
push esi
push edi
push eax
call fcn.004304e9
mov eax, dword [esp + 0x158]
add esp, 0xc
push 2
mov edi, 0xf
push 0x455120
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.004099d0
cmp dword [esp + 0xe4], 0x10
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
jae 0x4064a8
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.0040c640
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x4064df
mov eax, dword [eax]
push eax
lea eax, [esp + 0x194]
call fcn.004147e0
cmp dword [esp + 0x108], ebx
jb 0x406505
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0042f0d0
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 0x406540
mov edx, dword [esp + 0xd0]
push edx
call fcn.0042f0d0
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.004099d0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], ebx
jae 0x40658c
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.0040c640
cmp dword [eax + 0x14], ebx
jb 0x4065b9
mov ebx, dword [eax]
jmp 0x4065bb
mov ebx, eax
test ebx, ebx
jne 0x4065c4
mov ebx, 0x454939
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4065d0
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x1d4]
cmp esi, 0x3f
jge 0x406604
lea ecx, [esp + 0x1d8]
cmp eax, ecx
je 0x406652
push eax
call fcn.0042f7b1
add esp, 4
lea eax, [esp + 0x1d8]
jmp 0x40664b
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406610
sub ecx, edi
cmp esi, ecx
jg 0x40662a
lea edx, [esp + 0x1d8]
cmp eax, edx
jne 0x406652
jmp 0x406635
lea ecx, [esp + 0x1d8]
cmp eax, ecx
jne 0x40663e
xor eax, eax
mov dword [esp + 0x1d4], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00430799
add esp, 8
mov dword [esp + 0x1d4], eax
push esi
push ebx
push eax
call fcn.004304e9
mov eax, dword [esp + 0x1e0]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x406686
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0042f0d0
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 0x4066c3
mov edx, dword [esp + 0xd0]
push edx
call fcn.0042f0d0
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.004099d0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x40670a
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.0040c640
cmp dword [eax + 0x14], esi
jb 0x406739
mov ebx, dword [eax]
jmp 0x40673b
mov ebx, eax
test ebx, ebx
jne 0x406744
mov ebx, 0x454939
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406750
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x218]
cmp esi, 0x3f
jge 0x406784
lea ecx, [esp + 0x21c]
cmp eax, ecx
je 0x4067d2
push eax
call fcn.0042f7b1
add esp, 4
lea eax, [esp + 0x21c]
jmp 0x4067cb
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406790
sub ecx, edi
cmp esi, ecx
jg 0x4067aa
lea edx, [esp + 0x21c]
cmp eax, edx
jne 0x4067d2
jmp 0x4067b5
lea ecx, [esp + 0x21c]
cmp eax, ecx
jne 0x4067be
xor eax, eax
mov dword [esp + 0x218], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00430799
add esp, 8
mov dword [esp + 0x218], eax
push esi
push ebx
push eax
call fcn.004304e9
mov eax, dword [esp + 0x224]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x406806
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0042f0d0
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 0x406844
mov edx, dword [esp + 0xd0]
push edx
call fcn.0042f0d0
add esp, 4
push 3
push 0x455134
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], ebx
mov dword [esp + 0xe8], edi
mov byte [esp + 0xd8], 0
call fcn.004099d0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x40688c
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.0040c640
cmp dword [eax + 0x14], esi
jb 0x4068bb
mov ebx, dword [eax]
jmp 0x4068bd
mov ebx, eax
test ebx, ebx
jne 0x4068c6
mov ebx, 0x454939
mov eax, ebx
lea edx, [eax + 1]
jmp 0x4068d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068d0
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x25c]
cmp esi, 0x3f
jge 0x406904
lea ecx, [esp + 0x260]
cmp eax, ecx
je 0x406952
push eax
call fcn.0042f7b1
add esp, 4
lea eax, [esp + 0x260]
jmp 0x40694b
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406910
sub ecx, edi
cmp esi, ecx
jg 0x40692a
lea edx, [esp + 0x260]
cmp eax, edx
jne 0x406952
jmp 0x406935
lea ecx, [esp + 0x260]
cmp eax, ecx
jne 0x40693e
xor eax, eax
mov dword [esp + 0x25c], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00430799
add esp, 8
mov dword [esp + 0x25c], eax
push esi
push ebx
push eax
call fcn.004304e9
mov eax, dword [esp + 0x268]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x406986
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0042f0d0
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 0x4069c3
mov edx, dword [esp + 0xd0]
push edx
call fcn.0042f0d0
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.004099d0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x406a0a
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.0040c640
cmp dword [eax + 0x14], esi
jb 0x406a39
mov ebx, dword [eax]
jmp 0x406a3b
mov ebx, eax
test ebx, ebx
jne 0x406a44
mov ebx, 0x454939
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406a50
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x2a0]
cmp esi, 0x3f
jge 0x406a84
lea ecx, [esp + 0x2a4]
cmp eax, ecx
je 0x406ad2
push eax
call fcn.0042f7b1
add esp, 4
lea eax, [esp + 0x2a4]
jmp 0x406acb
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406a90
sub ecx, edi
cmp esi, ecx
jg 0x406aaa
lea edx, [esp + 0x2a4]
cmp eax, edx
jne 0x406ad2
jmp 0x406ab5
lea ecx, [esp + 0x2a4]
cmp eax, ecx
jne 0x406abe
xor eax, eax
mov dword [esp + 0x2a0], eax
lea edx, [esi + 1]
push edx
push eax
call fcn.00430799
add esp, 8
mov dword [esp + 0x2a0], eax
push esi
push ebx
push eax
call fcn.004304e9
mov eax, dword [esp + 0x2ac]
mov byte [eax + esi], 0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x108], esi
jb 0x406b06
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0042f0d0
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 0x406b43
mov edx, dword [esp + 0xd0]
push edx
call fcn.0042f0d0
add esp, 4
push 3
push 0x455140
lea ecx, [esp + 0xfc]
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
call fcn.004099d0
mov byte [esp + 0x388], 0xc
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
cmp eax, ebx
je 0x406b8a
lea ecx, [eax + 9]
cmp ecx, ebx
je 0x406b8a
add ecx, 0xfffffff7
jmp 0x406b8c
xor ecx, ecx
mov esi, dword [ecx + 4]
cmp eax, ebx
je 0x406b9f
add eax, 9
cmp eax, ebx
je 0x406ba1
lea ecx, [eax - 9]
jmp 0x406ba3
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 4]
cmp eax, ebx
je 0x406baf
add eax, 0xfffffff7
jmp 0x406bb1
xor eax, eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c]
and eax, 0xfffffffe
je 0x406bc1
add eax, 0xffffffc4
jmp 0x406bc3
xor eax, eax
lea edx, [esp + 0xf4]
push edx
push ecx
call fcn.0040df80
add esp, 8
cmp eax, esi
mov esi, 0x10
setne bl
mov byte [esp + 0x388], 6
cmp dword [esp + 0x108], esi
jb 0x406bff
mov eax, dword [esp + 0xf4]
push eax
call fcn.0042f0d0
add esp, 4
test bl, bl
je 0x406d36
push 3
push 0x455140
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], 0
mov byte [esp + 0xd8], 0
call fcn.004099d0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xec], 0x2e
cmp dword [esp + 0xe4], esi
jae 0x406c57
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 0x455144
or esi, 0xffffffff
mov byte [ecx], 0
call fcn.004099d0
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.0040c640
lea ecx, [esp + 0x12c]
mov byte [esp + 0x3c0], bl
call fcn.00421940
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x406cd1
mov eax, dword [eax]
push eax
mov eax, esi
lea esi, [esp + 0x2e8]
call fcn.004148e0
cmp dword [esp + 0x108], ebx
jb 0x406cf9
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0042f0d0
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 0x406d7a
mov edx, dword [esp + 0xd0]
push edx
call fcn.0042f0d0
add esp, 4
jmp 0x406d7a
mov eax, dword [esp + 0x2e4]
lea ecx, [esp + 0x2e8]
cmp eax, ecx
je 0x406d5f
push eax
call fcn.0042f7b1
lea eax, [esp + 0x2ec]
add esp, 4
mov dword [esp + 0x2e4], eax
push 1
push 0x455148
push eax
call fcn.004304e9
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 0x406dcb
mov eax, dword [ebx]
lea ecx, [esp + 0x14c]
cmp eax, ecx
ja 0x406dcb
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 0x406db8
mov ecx, ebx
call fcn.00404510
mov edi, dword [ebx + 4]
imul esi, esi, 0x1dc
add esi, dword [ebx]
test edi, edi
je 0x406dee
mov ebx, esi
jmp 0x406de5
cmp edi, dword [ebx + 8]
jne 0x406dd7
mov ecx, ebx
call fcn.00404510
mov edi, dword [ebx + 4]
test edi, edi
je 0x406dee
lea ebx, [esp + 0x14c]
call fcn.00404d20
mov ebx, dword [esp + 0x18]
add dword [ebx + 4], 0x1dc
lea eax, [esp + 0x14c]
mov byte [esp + 0x388], 5
call fcn.004038c0
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x406e1d
add eax, 0xffffffb8
mov dword [esp + 0x14], eax
jmp 0x406e25
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jne 0x406350
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 0x406190
add ecx, edx
push ecx
push esi
push edi
call fcn.0040d1e0
add esp, 0x10
mov eax, dword [esp + 0x12c]
xor ebx, ebx
mov esi, eax
mov dword [esp + 0x24], esi
cmp eax, ebx
je 0x406e9a
add eax, 9
push eax
mov byte [esp + 0x38c], 0x10
call fcn.0040cc10
mov eax, dword [esi + 4]
push eax
call fcn.0042f0d0
add esp, 4
push esi
call fcn.0042f0d0
add esp, 4
cmp dword [esp + 0x124], 0x10
jb 0x406eb4
mov edx, dword [esp + 0x110]
push edx
call fcn.0042f0d0
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 0x406f0e
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
push eax
call fcn.0042f0d0
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 0x406fa6
mov edi, dword [eax]
cmp edi, ebx
je 0x406f99
push ebx
lea ecx, [esp + 0x20]
call fcn.0042e825
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x406f77
cmp eax, 0xffffffff
jae 0x406f77
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.0042e84d
cmp esi, ebx
je 0x406f99
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042f0d0
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x388], 0x11
call fcn.0042e87e
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.0042e431
add esp, 4
cmp dword [esp + 0x144], 0x10
jb 0x407003
mov edx, dword [esp + 0x130]
push edx
call fcn.0042f0d0
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 0x407038
push eax
call fcn.0042f7b1
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.0042ed1f
mov esp, ebp
pop ebp
ret 4