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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd34
mov eax, dword [0x4265d4]
xor eax, esp
mov dword [esp + 0xd30], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.00401e14
push 7
pop esi
xor eax, eax
push edi
lea ecx, [esp + 0x1e4]
mov dword [esp + 0x134], esi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], ax
mov dword [esp + 0x2a0], esi
mov dword [esp + 0x29c], ebx
mov word [esp + 0x28c], ax
mov dword [esp + 0x2bc], esi
mov dword [esp + 0x2b8], ebx
mov word [esp + 0x2a8], ax
mov byte [esp + 0x17], bl
mov dword [esp + 0x1f8], 0xf
mov dword [esp + 0x1f4], ebx
mov byte [esp + 0x1e4], bl
call fcn.00402658
cmp dword [esp + 0x1f4], 0x10
mov ecx, dword [esp + 0x1e0]
mov eax, ecx
jae 0x404281
lea eax, [esp + 0x1e0]
add eax, dword [esp + 0x1f0]
cmp dword [esp + 0x1f4], 0x10
jae 0x404299
lea ecx, [esp + 0x1e0]
push dword [esp + 0x1c]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x1b4]
push eax
mov dword [esp + 0x1cc], esi
mov dword [esp + 0x1c8], ebx
mov word [esp + 0x1b8], dx
call fcn.00402d33
lea esi, [esp + 0x1a8]
lea edi, [esp + 0x11c]
call fcn.00401d32
push ebx
push 1
mov ecx, esi
call fcn.004013ba
push 5
push 0x4277e0
call fcn.004036f2
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x4042f2
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x124]
call fcn.0040131c
mov esi, eax
cmp esi, 0xffffffff
setne al
mov byte [0x477ed1], al
cmp al, bl
je 0x4043af
lea ebx, [esp + 0xc8]
call fcn.00403962
mov ebx, eax
call fcn.0040378a
push 0
push 1
lea ecx, [esp + 0xd0]
call fcn.004013ba
push 0x423848
push 5
push esi
lea eax, [esp + 0x128]
push eax
call fcn.00405c12
push 0x40000
push 3
push 0x4276a8
call fcn.004036f2
push eax
push 7
push 0x4277ac
call fcn.004036f2
push eax
call fcn.0040227f
push 0x11
push 0x4277bc
call fcn.004036f2
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
push 0
push 1
mov ecx, esi
call fcn.004013ba
xor ebx, ebx
push 0xd8
call fcn.0040d2c3
pop ecx
cmp eax, ebx
je 0x4043c9
call fcn.00407983
mov dword [esp + 0x20], eax
jmp 0x4043cd
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x2dc]
call fcn.00408073
lea eax, [ebx + 0xbc]
push eax
lea eax, [esp + 0x254]
call fcn.00402630
lea eax, [ebx + 0xa0]
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x190]
call fcn.00402630
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
push 0
push 1
mov ecx, esi
call fcn.004013ba
cmp dword [esp + 0x264], 8
mov eax, dword [esp + 0x250]
jae 0x404445
lea eax, [esp + 0x250]
push eax
push 0x10
push 0x427830
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.004013ba
mov byte [esp + 0x12], 1
cmp byte [0x477ed1], bl
je 0x404508
cmp dword [esp + 0x12c], ebx
jbe 0x40457d
cmp dword [esp + 0x130], 8
mov eax, dword [esp + 0x11c]
mov byte [esp + 0x12], bl
jae 0x4044c0
lea eax, [esp + 0x11c]
push eax
push 0x20
push 0x427850
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
push 0
push 1
mov ecx, esi
call fcn.004013ba
xor ebx, ebx
jmp 0x40457d
push 2
push 0x4277ec
call fcn.004036f2
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x404519
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x124]
call fcn.0040131c
push 2
push 0x4277f0
mov edi, eax
call fcn.004036f2
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x40454b
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x124]
call fcn.0040131c
cmp edi, 0xffffffff
je 0x404578
mov byte [esp + 0x12], bl
cmp eax, 0xffffffff
jne 0x40457d
mov byte [esp + 0x12], 1
push 1
call fcn.0040d2c3
pop ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2f8]
call fcn.00401c2b
cmp dword [esp + 0x308], ebx
jbe 0x4045a3
mov byte [esp + 0x13], 1
cmp byte [esp + 0x12], bl
je 0x404d5a
cmp dword [esp + 0x1a0], 8
mov eax, dword [esp + 0x18c]
jae 0x4045c5
lea eax, [esp + 0x18c]
push eax
push 0x13
push 0x427890
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xe8]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.004013ba
push 0x42384c
lea esi, [esp + 0x1ac]
call fcn.00401249
push ebx
push 0x421fca
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
call fcn.00402679
cmp dword [esp + 0x1a0], 8
mov eax, dword [esp + 0x18c]
jae 0x40465e
lea eax, [esp + 0x18c]
mov ecx, dword [0x477ef4]
mov ecx, dword [ecx + 8]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x404786
cmp dword [esp + 0x1a0], 8
mov eax, dword [esp + 0x18c]
jae 0x40469d
lea eax, [esp + 0x18c]
push eax
push 0x17
push 0x4279e4
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xe8]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
mov ecx, ebx
call fcn.004013ba
mov eax, dword [0x477ef4]
mov eax, dword [eax + 8]
push esi
call dword [eax + 0x14]
push esi
push edi
lea ecx, [esp + 0xd0]
call fcn.004012d8
push esi
push edi
lea ecx, [esp + 0x1b0]
call fcn.004013ba
push 0x1f
pop ebx
push esi
push edi
lea ecx, [esp + 0x300]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x194]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x258]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x2e4]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x1e8]
call fcn.004012d8
push esi
push edi
lea ecx, [esp + 0x2ac]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x290]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x124]
call fcn.004013ba
mov eax, ebx
jmp 0x40573c
mov eax, dword [0x477ef4]
mov eax, dword [eax + 8]
push ebx
push esi
call dword [eax + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [0x477ef4]
mov eax, dword [eax + 8]
push esi
call dword [eax + 0x14]
push 0x3999
sub esp, 0x1c
lea ecx, [esp + 0x1ac]
mov eax, esp
push ecx
call fcn.00402630
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x104]
call fcn.00404002
mov esi, eax
lea edi, [esp + 0x1a8]
call fcn.00401d32
push ebx
push 1
lea ecx, [esp + 0xec]
call fcn.004013ba
push 0x423850
lea esi, [esp + 0x238]
call fcn.00401249
push 0x423854
lea esi, [esp + 0x270]
call fcn.00401249
push 0x423858
lea esi, [esp + 0x200]
call fcn.00401249
xor esi, esi
mov dword [esp + 0x18], 8
push 7
pop edi
push dword [esp + 0x1c]
xor eax, eax
mov word [esp + 0x13c], ax
lea eax, [esi + 0x427d96]
push eax
dec eax
push eax
lea eax, [esp + 0x144]
push eax
mov dword [esp + 0x15c], edi
mov dword [esp + 0x158], ebx
call fcn.00407616
push dword [esp + 0x1c]
xor eax, eax
mov word [esp + 0x104], ax
lea eax, [esi + 0x427e1e]
push eax
lea eax, [esi + 0x427e1d]
push eax
lea eax, [esp + 0x10c]
push eax
mov dword [esp + 0x124], edi
mov dword [esp + 0x120], ebx
call fcn.00407616
push ebx
lea eax, [esp + 0x13c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x23c]
call fcn.00406c75
push ebx
lea eax, [esp + 0x104]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x274]
call fcn.00406c75
push ebx
push 1
lea ecx, [esp + 0x108]
call fcn.004013ba
push ebx
push 1
lea ecx, [esp + 0x140]
call fcn.004013ba
add esi, 2
dec dword [esp + 0x18]
jne 0x404824
cmp dword [esp + 0x248], 8
mov eax, dword [esp + 0x234]
jae 0x404903
lea eax, [esp + 0x234]
push dword [esp + 0x244]
lea ecx, [esp + 0x1ac]
push eax
xor eax, eax
call fcn.0040131c
cmp dword [esp + 0x280], 8
mov esi, eax
mov eax, dword [esp + 0x26c]
jae 0x404933
lea eax, [esp + 0x26c]
mov edi, dword [esp + 0x27c]
push edi
push eax
xor eax, eax
lea ecx, [esp + 0x1b0]
call fcn.0040131c
cmp esi, 0xffffffff
je 0x4049a8
cmp eax, 0xffffffff
je 0x4049a8
sub eax, dword [esp + 0x244]
add edi, esi
sub eax, esi
push eax
xor ecx, ecx
push edi
lea eax, [esp + 0x1b0]
lea edi, [esp + 0x108]
mov dword [esp + 0x11c], 7
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], cx
call fcn.004016a0
mov esi, edi
lea edi, [esp + 0x1fc]
call fcn.00401d32
push ebx
push 1
mov ecx, esi
call fcn.004013ba
cmp dword [esp + 0x20c], ebx
jne 0x4049f5
push 0x400
sub esp, 0x1c
lea ecx, [esp + 0x1ac]
mov eax, esp
push ecx
call fcn.00402630
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x104]
call fcn.00404002
mov esi, eax
lea edi, [esp + 0x1fc]
call fcn.00401d32
push ebx
push 1
lea ecx, [esp + 0xec]
call fcn.004013ba
sub esp, 0x1c
lea ecx, [esp + 0x218]
mov eax, esp
push ecx
call fcn.00402630
lea eax, [esp + 0x2dc]
push eax
call fcn.0040253f
lea eax, [esp + 0x38]
push eax
lea esi, [esp + 0x84]
mov dword [esp + 0x2c], 0x423a58
mov dword [esp + 0x84], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.004072bb
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
lea esi, [esp + 0x38]
mov dword [esp + eax + 0x28], vtable.std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.00407371
cmp dword [esp + 0x2d4], 8
mov ecx, dword [esp + 0x2c0]
mov dword [esp + 0x38], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
jae 0x404a78
lea ecx, [esp + 0x2c0]
mov eax, dword [esp + 0x2d0]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 2
cmp eax, ebx
je 0x404a99
push ecx
lea esi, [esp + 0x3c]
call fcn.004073f5
xor eax, eax
mov dword [esp + 0x1d8], 7
mov dword [esp + 0x1d4], ebx
mov word [esp + 0x1c4], ax
jmp 0x404c9f
push 1
push str.:eu___
xor eax, eax
call fcn.0040131c
mov esi, eax
cmp esi, 0xffffffff
je 0x404c7b
xor eax, eax
push esi
mov word [esp + 0x104], ax
push ebx
lea eax, [esp + 0x1cc]
lea edi, [esp + 0x108]
mov dword [esp + 0x11c], 7
mov dword [esp + 0x118], ebx
call fcn.004016a0
xor eax, eax
mov word [esp + 0x138], ax
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x1cc]
lea edi, [esp + 0x140]
mov dword [esp + 0x154], 7
mov dword [esp + 0x150], ebx
call fcn.004016a0
push 0x423860
lea ecx, [esp + 0x104]
call fcn.004075a5
test eax, eax
jne 0x404b5f
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x2ac]
call fcn.004016a0
push 0x423864
lea ecx, [esp + 0x104]
call fcn.004075a5
test eax, eax
jne 0x404b8a
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x140]
lea edi, [esp + 0x290]
call fcn.004016a0
push 0x423868
push 1
push esi
lea eax, [esp + 0x1d0]
push eax
call fcn.00405c12
xor eax, eax
mov word [esp + 0x218], ax
mov eax, dword [esp + 0x1d4]
push 7
pop esi
inc eax
lea ecx, [esp + 0x218]
mov dword [esp + 0x22c], esi
mov dword [esp + 0x228], ebx
call fcn.00402dec
push 0x423870
lea eax, [esp + 0x21c]
push eax
call fcn.00405be7
push ebx
lea eax, [esp + 0x1c8]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x220]
call fcn.00406c75
push 0x42386c
mov eax, edi
push eax
call fcn.00405be7
mov dword [esp + 0xf8], esi
xor ecx, ecx
mov esi, eax
lea edi, [esp + 0xe4]
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], cx
call fcn.00401d32
mov eax, edi
push ebx
push eax
or eax, 0xffffffff
lea edi, [esp + 0x124]
call fcn.00406c75
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xec]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x220]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x140]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x108]
call fcn.004013ba
jmp 0x404c9f
push 8
push 0x427c9c
call fcn.004036f2
push eax
lea ecx, [esp + 0x1c8]
call fcn.004075a5
test eax, eax
jne 0x404c9f
mov byte [0x477ed2], 1
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00407671
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
and al, 6
movsx eax, al
neg eax
sbb eax, eax
not eax
test ecx, eax
lea ecx, [esp + 0x1c4]
jne 0x404aba
xor esi, esi
push ebx
inc esi
push esi
call fcn.004013ba
lea ecx, [esp + 0x80]
call fcn.00406420
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.0040c0b8
pop ecx
push ebx
push esi
lea ecx, [esp + 0x2c8]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x204]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x274]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x23c]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0xd0]
call fcn.004012d8
push ebx
push esi
lea ecx, [esp + 0x1b0]
call fcn.004013ba
xor ebx, ebx
cmp dword [esp + 0x12c], ebx
jne 0x404dcb
push 0x423874
push 0x16
push 0x4278b8
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
push 0
push 1
mov ecx, esi
call fcn.004013ba
push 0x2f
push 0x427908
call fcn.004036f2
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov eax, esi
call fcn.00403bd0
cmp dword [esp + 0x130], 8
mov eax, dword [esp + 0x11c]
jae 0x404de3
lea eax, [esp + 0x11c]
push eax
push 2
push 0x4275e4
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xe8]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.004013ba
cmp byte [0x477ed2], bl
jne 0x405015
cmp byte [0x477ed1], bl
jne 0x405015
lea eax, [esp + 0x18c]
push eax
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x258]
call fcn.00401aad
cmp dword [esp + 0x148], ebx
jbe 0x404e71
lea ecx, [esp + 0x138]
call fcn.0040385a
push 0x19
push str.l_JC1
mov dword [esp + 0x20], ebx
call fcn.004036f2
mov ecx, dword [0x477ef4]
mov ecx, dword [ecx + 0x38]
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [ecx]
test eax, eax
jne 0x404ebe
push 0x32
push 0x427b88
call fcn.004036f2
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ecx, esi
jmp 0x404e6c
push 0x12
xor eax, eax
push 0x427c2c
mov dword [esp + 0x11c], 7
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], ax
call fcn.004036f2
push eax
lea esi, [esp + 0x21c]
call fcn.00401249
push 0x20
push str.l_JC4
call fcn.004036f2
push eax
lea esi, [esp + 0xe8]
call fcn.00401249
mov eax, esi
push eax
lea ecx, [esp + 0x104]
lea edx, [esp + 0x21c]
call fcn.004077be
push ebx
push 1
lea ecx, [esp + 0xec]
mov esi, eax
call fcn.004013ba
push ebx
push 1
lea ecx, [esp + 0x220]
call fcn.004013ba
cmp esi, ebx
jne 0x404fc0
push 6
push 0x427c90
call fcn.004036f2
push eax
lea esi, [esp + 0xe8]
call fcn.00401249
cmp dword [esp + 0xf8], 8
mov eax, dword [esp + 0xe4]
jae 0x404f72
mov eax, esi
mov edi, dword [esp + 0xf4]
push eax
mov eax, dword [esp + 0x114]
lea ecx, [esp + 0x104]
call fcn.004075d2
test eax, eax
jne 0x404fb1
push 0x32
push 0x427b88
call fcn.004036f2
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ecx, esi
jmp 0x404e6c
push ebx
push 1
lea ecx, [esp + 0xec]
call fcn.004013ba
push ebx
push 1
lea ecx, [esp + 0x108]
call fcn.004013ba
push ebx
push 1
lea ecx, [esp + 0x140]
call fcn.004013ba
cmp byte [0x477ed1], bl
jne 0x405015
mov ebx, dword [esp + 0x20]
call fcn.004081ec
test al, al
jne 0x405013
push 0x32
push 0x427b88
call fcn.004036f2
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ecx, esi
jmp 0x404e6c
xor ebx, ebx
push 0x423878
lea esi, [esp + 0x174]
call fcn.00401249
mov eax, dword [0x477ef4]
mov eax, dword [eax + 8]
lea ecx, [esp + 0xb30]
push ecx
push 0x104
call dword [eax + 0x18]
test eax, eax
je 0x405073
lea eax, [esp + 0xb30]
push eax
lea esi, [esp + 0xe8]
call fcn.00401249
mov esi, eax
lea edi, [esp + 0x170]
call fcn.00401d32
push ebx
push 1
lea ecx, [esp + 0xec]
call fcn.004013ba
lea ebx, [esp + 0x170]
lea ecx, [esp + 0xe4]
call fcn.004085ba
mov esi, eax
mov edi, ebx
call fcn.00401d32
push 0
push 1
lea ecx, [esp + 0xec]
call fcn.004013ba
cmp dword [esp + 0x184], 8
mov eax, dword [esp + 0x170]
jae 0x4050b2
mov eax, ebx
mov ecx, dword [0x477ef4]
mov ecx, dword [ecx + 8]
push 0
push eax
call dword [ecx + 8]
test eax, eax
jne 0x405110
push 0x17
push 0x427968
call fcn.004036f2
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
push 0
push 1
mov ecx, esi
call fcn.004013ba
push 0x25
push 0x427998
call fcn.004036f2
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov eax, esi
jmp 0x404dc6
lea ebx, [esp + 0x170]
lea ecx, [esp + 0x154]
call fcn.00408868
cmp dword [esp + 0x168], 8
mov eax, dword [esp + 0x154]
jae 0x40513b
lea eax, [esp + 0x154]
push eax
push 0x11
push 0x4278e4
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xe8]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.004013ba
cmp byte [esp + 0x13], bl
je 0x4051c7
mov eax, 0x31a52
push eax
mov dword [esp + 0x1c], eax
call fcn.0040bead
pop ecx
mov dword [esp + 0x14], eax
xor esi, esi
mov edi, dword [esi + 0x4767c0]
mov eax, dword [esp + 0x14]
push edi
push dword [esi + 0x4768c8]
add eax, ebx
push eax
call fcn.0040f730
add esi, 4
add esp, 0xc
add ebx, edi
cmp esi, 0xa4
jl 0x40519c
jmp 0x405203
mov eax, 0x1c574
push eax
mov dword [esp + 0x1c], eax
call fcn.0040bead
pop ecx
mov dword [esp + 0x14], eax
xor esi, esi
mov edi, dword [esi + 0x476760]
mov eax, dword [esp + 0x14]
push edi
push dword [esi + 0x476868]
add eax, ebx
push eax
call fcn.0040f730
add esi, 4
add esp, 0xc
add ebx, edi
cmp esi, 0x5c
jl 0x4051dd
lea esi, [esp + 0x18]
lea ecx, [esp + 0x14]
call fcn.00403bfd
test al, al
jne 0x405234
push 0x2f
push 0x427908
call fcn.004036f2
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ecx, esi
jmp 0x404e6c
mov eax, dword [esp + 0x154]
push 8
pop edi
cmp dword [esp + 0x168], edi
jae 0x40524e
lea eax, [esp + 0x154]
mov ecx, dword [0x477ef4]
mov ecx, dword [ecx + 8]
xor ebx, ebx
push ebx
push 0x100
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x405307
mov eax, dword [esp + 0x154]
cmp dword [esp + 0x168], edi
jae 0x40528e
lea eax, [esp + 0x154]
push eax
push 0x17
push 0x4279e4
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xe8]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
xor esi, esi
push esi
push 1
mov ecx, ebx
call fcn.004013ba
mov eax, dword [0x477ef4]
mov eax, dword [eax + 8]
push esi
call dword [eax + 0x14]
push esi
push 1
lea ecx, [esp + 0x15c]
call fcn.004013ba
push esi
push 1
lea ecx, [esp + 0x178]
call fcn.004013ba
xor edi, edi
push 0xd
inc edi
jmp 0x40470e
mov eax, dword [0x477ef4]
mov eax, dword [eax + 8]
push ebx
lea ecx, [esp + 0x28]
push ecx
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call dword [eax + 0x1c]
test eax, eax
jne 0x40532c
mov edi, esi
call fcn.004038f4
mov eax, dword [0x477ef4]
mov eax, dword [eax + 8]
push esi
call dword [eax + 0x14]
push dword [esp + 0x14]
call fcn.0040e6a8
mov eax, dword [esp + 0x158]
pop ecx
cmp dword [esp + 0x168], edi
jae 0x405359
lea eax, [esp + 0x154]
push eax
push 0x14
push 0x427a14
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
push 0
push 1
mov ecx, esi
call fcn.004013ba
push edi
push 0x427a3c
call fcn.004036f2
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x4053ad
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x120]
call fcn.00406eb8
cmp byte [0x477ed1], 0
mov ebx, 0x4275e0
je 0x405495
lea eax, [esp + 0x2dc]
push eax
lea eax, [esp + 0xcc]
call fcn.00402630
push 3
push 0x4277f4
call fcn.004036f2
push eax
lea esi, [esp + 0x200]
call fcn.00401249
push 0x42387c
mov eax, esi
push eax
call fcn.00405be7
push 1
push ebx
call fcn.004036f2
push eax
mov eax, esi
push eax
call fcn.00405be7
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0xd0]
call fcn.00406daa
push 7
push 0x4275f0
call fcn.004036f2
push eax
mov eax, edi
push eax
call fcn.00405be7
push 1
push ebx
call fcn.004036f2
push eax
mov eax, edi
push eax
call fcn.00405be7
xor esi, esi
mov eax, edi
push esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x124]
call fcn.00406c75
push esi
push 1
lea ecx, [esp + 0x204]
call fcn.004013ba
push esi
push 1
lea ecx, [esp + 0xd0]
call fcn.004013ba
push 3
push 0x4277fc
call fcn.004036f2
push eax
lea esi, [esp + 0x318]
call fcn.00401249
push 0x423880
mov eax, esi
push eax
call fcn.00405be7
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x124]
call fcn.00406c75
push 1
push ebx
call fcn.004036f2
push eax
mov eax, edi
push eax
call fcn.00405be7
push dword [esp + 0x1c]
lea eax, [esp + 0xcc]
call fcn.00402630
push 0
lea eax, [esp + 0xcc]
push eax
or eax, 0xffffffff
call fcn.00406c75
push 0
push 1
lea ecx, [esp + 0xd0]
call fcn.004013ba
push 1
push ebx
call fcn.004036f2
push eax
mov eax, edi
push eax
call fcn.00405be7
mov eax, edi
push eax
lea edx, [esp + 0x158]
lea ecx, [esp + 0x174]
call fcn.00403dca
test al, al
je 0x40558f
push 0x423884
push 0x17
push 0x427a4c
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xd0]
call fcn.004013ba
jmp 0x4055dc
push 0x423888
push 0x10
push 0x427a7c
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
push 0
push 1
mov ecx, esi
call fcn.004013ba
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x477ed1], bl
je 0x405642
cmp dword [esp + 0x184], 8
mov eax, dword [esp + 0x170]
jae 0x4055fc
lea eax, [esp + 0x170]
push eax
push 0x2d
push 0x427ac8
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
push 3
push 0x4276a8
call fcn.004036f2
mov ecx, dword [0x477ef4]
mov ecx, dword [ecx + 0x14]
push 0x40000
push eax
lea eax, [esp + 0x338]
push eax
push ebx
call dword [ecx]
jmp 0x4056a0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x170]
push eax
call fcn.00408699
push 0x42388c
push 0x16
push 0x427a9c
call fcn.004036f2
push eax
lea eax, [esp + 0x338]
push eax
call fcn.00402e1f
add esp, 0xc
lea eax, [esp + 0x330]
push eax
lea esi, [esp + 0xcc]
call fcn.00401249
mov ebx, esi
call fcn.0040378a
push 0
push 1
mov ecx, esi
call fcn.004013ba
xor esi, esi
xor ebx, ebx
inc esi
push ebx
push esi
lea ecx, [esp + 0x31c]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x15c]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x178]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x300]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x194]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x258]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x2e4]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x1e8]
call fcn.004012d8
push ebx
push esi
lea ecx, [esp + 0x2ac]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x290]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x124]
call fcn.004013ba
xor eax, eax
mov ecx, dword [esp + 0xd3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040cab3
mov esp, ebp
pop ebp
ret 0x10