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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x220
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
mov edx, 0x1e
bt edx, ecx
jae 0x404dac
mov edx, dword [edi]
mov dword [edi], 0
mov dword [esp + 0xa0], edx
lea edi, [esp + 0xa0]
mov edx, esi
push eax
push edi
call fcn.00406ef0
add esp, 8
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x40605a
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40605a
mov eax, 0x61
bt eax, ecx
jae 0x406062
mov dword [esp + 0xe8], ecx
cmp ecx, 6
jne 0x404dd0
test byte [esi + 0x3c], 8
jne 0x4061e8
mov eax, dword [0x417ee4]
mov dword [esp + 0xf0], eax
mov eax, dword [0x417ee8]
mov dword [esp + 0xec], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x1f0], xmm0
mov dword [esp + 0x200], 8
mov dword [esp + 0x5c], 0
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x138]
push 1
push eax
push esi
call fcn.00410fb8
lea ecx, [esp + 0xf8]
push esi
call fcn.00410fee
mov eax, dword [esp + 0x138]
mov edi, dword [esp + 0x13c]
movzx ecx, word [esp + 0x148]
mov esi, dword [esp + 0x14c]
mov edx, dword [esp + 0xfc]
mov dword [esp + 0x9c], edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x34], eax
mov word [esp + 0x54], cx
mov eax, dword [esp + 0x10c]
mov dword [esp + 0xf4], eax
test edi, edi
je 0x404ead
mov eax, dword [edi]
lea ecx, [esp + 0x138]
push edi
call dword [eax]
mov eax, dword [esp + 0x138]
mov dword [esp + 0x48], eax
mov dword [esp + 0xe4], edi
mov dword [esp + 0x58], esi
xor eax, eax
mov edx, dword [esp + 0x9c]
test edx, edx
je 0x404ed8
mov eax, dword [edx]
lea ecx, [esp + 0x138]
push edx
call dword [eax]
mov eax, dword [esp + 0x138]
mov dword [esp + 0xe0], eax
lea esi, [esp + 0x44]
jmp 0x404efb
lea esi, [esp + 0x44]
mov ecx, esi
call fcn.00408170
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x58], 3
ja 0x404f14
cmp dword [esp + 0xf4], 4
jb 0x405f4b
cmp eax, dword [esp + 0x34]
je 0x405f4b
lea ecx, [esp + 0xa8]
push esi
call fcn.00410fd6
xor eax, eax
test byte [esp + 0xb0], 1
je 0x404f49
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], eax
mov word [esp + 0x218], 0x101
sub esp, 0x14
mov eax, dword [esp + 0x22c]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x21c]
movups xmmword [esp], xmm0
lea ecx, [esp + 0xb8]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x404f93
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
mov edi, dword [esp + 0xac]
mov ecx, esi
call fcn.00408090
test al, al
je 0x405f00
mov eax, dword [esp + 0xec]
cmp dword [esp + 0xf0], eax
je 0x40507b
mov ebx, dword [0x417ee4]
mov esi, dword [0x417ee8]
cmp ebx, esi
je 0x405f00
nop dword [eax]
mov ecx, dword [esp + 8]
mov edx, edi
push dword [ebx + 4]
push dword [ebx]
call fcn.00408340
add esp, 8
test al, al
jne 0x405000
add ebx, 8
cmp ebx, esi
jne 0x404fe0
mov ebx, esi
mov esi, dword [0x417ee8]
cmp ebx, esi
je 0x405f00
cmp dword [0x417a44], 0
je 0x405061
mov eax, dword [esp + 8]
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], edi
sub esp, 8
movsd xmm0, qword [esp + 0x140]
movsd qword [esp], xmm0
lea ecx, [esp + 0x1f8]
call fcn.00408700
mov eax, dword [eax]
mov ecx, dword [eax + 4]
inc ecx
mov dword [eax + 4], ecx
cmp ecx, dword [0x417a44]
jne 0x405f00
mov esi, dword [0x417ee8]
lea eax, [ebx + 8]
sub esi, eax
je 0x405073
push esi
push eax
push ebx
call sub.msvcrt.dll_memmove
add esp, 0xc
add ebx, esi
mov dword [0x417ee8], ebx
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x4051be
cmp eax, 5
lea ebx, [esp + 0x44]
jne 0x405231
cmp byte [0x417efc], 1
jne 0x405bae
lea ecx, [esp + 0x10]
push dword [esp + 0x48]
call fcn.00410fa0
xor eax, eax
test byte [esp + 0x14], 1
je 0x4050c6
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x38], eax
mov word [esp + 0x108], 0x101
sub esp, 0x14
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x10c]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x4c]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x405107
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [esp + 0x10]
mov ecx, ebx
shr ecx, 6
and ecx, 7
call fcn.004087e0
mov ecx, ebx
shr ecx, 3
and ecx, 7
call fcn.004087e0
and ebx, 7
mov ecx, ebx
call fcn.004087e0
lea ecx, [esp + 0x18]
push dword [esp + 0x48]
call fcn.00410fb2
xor eax, eax
test byte [esp + 0x1c], 1
je 0x405151
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc8], eax
mov word [esp + 0x1d8], 0x101
sub esp, 0x14
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x1dc]
movups xmmword [esp], xmm0
lea ecx, [esp + 0xdc]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0xc8]
test ecx, ecx
lea esi, [esp + 0x44]
je 0x40519f
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00410f46
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x405410
lea edx, [ecx + 1]
mov dword [eax + 0x10], edx
mov byte [ecx], 0x20
jmp 0x405419
cmp byte [0x417efc], 1
jne 0x4054fe
call fcn.00410f46
mov ebx, eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub ecx, eax
cmp ecx, 8
ja 0x4054af
mov ecx, ebx
push 9
push str.Printing
call fcn.00410e38
mov ebx, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, edi
jb 0x4054d6
test edi, edi
je 0x40521d
push edi
push dword [esp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x10]
add eax, edi
mov dword [ebx + 0x10], eax
cmp dword [ebx + 0xc], eax
je 0x4054f0
mov byte [eax], 0xa
inc dword [ebx + 0x10]
jmp 0x4054fe
lea ecx, [esp + 0x10]
push dword [esp + 0x48]
call fcn.00410fa0
xor eax, eax
test byte [esp + 0x14], 1
je 0x405253
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x90], eax
mov word [esp + 0x1d8], 0x101
sub esp, 0x14
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x1dc]
movups xmmword [esp], xmm0
lea ecx, [esp + 0xa4]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x40529d
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x144]
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0x80
movzx eax, byte [0x417f1c]
test al, 1
je 0x405392
mov eax, dword [0x417f20]
test eax, eax
je 0x40539c
mov word [esp + 0x108], 0x104
mov dword [esp + 0xf8], 0x417f1c
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
sub esp, 0xc
movsd xmm0, qword [esp + 0x24]
movsd qword [esp], xmm0
mov dword [esp + 8], 0
call fcn.00410f34
add esp, 0xc
mov word [esp + 0xdc], 0x105
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], edx
mov word [esp + 0x1ec], 0x101
mov word [esp + 0x70], 0x101
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x148]
push eax
call fcn.00410f2e
add esp, 0x14
mov eax, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
cmp byte [0x417efc], 1
je 0x4053d3
jmp 0x4057bf
shr eax, 1
test eax, eax
jne 0x4052e1
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
sub esp, 0xc
movsd xmm0, qword [esp + 0x24]
movsd qword [esp], xmm0
mov dword [esp + 8], 0
call fcn.00410f34
add esp, 0xc
cmp byte [0x417efc], 1
jne 0x4057bf
mov dword [esp + 0xc], edx
mov dword [esp + 0x98], esi
mov esi, eax
call fcn.00410f46
mov ebx, eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub ecx, eax
cmp ecx, 3
ja 0x4055c0
mov ecx, ebx
push 4
push str.x__
call fcn.00410e38
mov ebx, eax
mov eax, dword [eax + 0x10]
jmp 0x4055cf
mov ecx, eax
push 0x20
call fcn.00410e3e
mov ecx, eax
push dword [esp + 0x18]
call fcn.00410e50
lea ecx, [esp + 0x3c]
push dword [esp + 0x48]
call fcn.00410fac
xor eax, eax
test byte [esp + 0x40], 1
je 0x405446
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc4], eax
mov word [esp + 0xdc], 0x101
sub esp, 0x14
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [esp], xmm0
lea ecx, [esp + 0xd8]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0xc4]
test ecx, ecx
je 0x405490
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00410f46
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x4055f3
lea edx, [ecx + 1]
mov dword [eax + 0x10], edx
mov byte [ecx], 0x2f
jmp 0x4055fc
mov byte [eax + 8], 0x20
mov dword [eax + 4], 0x676e6974
mov dword [eax], 0x6e697250
mov eax, dword [ebx + 0x10]
add eax, 9
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, edi
jae 0x405203
mov ecx, ebx
push edi
push dword [esp + 0xc]
call fcn.00410e38
mov ebx, eax
mov eax, dword [eax + 0x10]
cmp dword [ebx + 0xc], eax
jne 0x405226
mov ecx, ebx
push 1
push 0x412b23
call fcn.00410e38
lea ecx, [esp + 0xf8]
lea eax, [esp + 0x44]
push eax
call fcn.00410fe8
xor eax, eax
test byte [esp + 0x100], 1
je 0x40552d
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xf8], 0
mov dword [esp + 0x1c8], eax
mov word [esp + 0x148], 0x101
sub esp, 0x14
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x14c]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x1dc]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0x1c8]
test ecx, ecx
je 0x405577
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0xf8]
mov edi, dword [esp + 0xfc]
call fcn.00410f46
mov ecx, eax
push edi
push esi
call fcn.00410e38
test byte [esp + 0x100], 1
je 0x405f00
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0xf8], 0
test ecx, ecx
jne 0x405a6e
jmp 0x405f00
mov dword [eax], 0x202d2078
mov eax, dword [ebx + 0x10]
add eax, 4
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0xc]
sub ecx, eax
mov edx, dword [esp + 0xc]
cmp edx, ecx
jbe 0x405688
mov ecx, ebx
push edx
push esi
call fcn.00410e38
mov ebx, eax
mov eax, dword [eax + 0x10]
jmp 0x4056a1
mov ecx, eax
push 0x2f
call fcn.00410e3e
mov ecx, eax
push dword [esp + 0x3c]
call fcn.00410e50
lea ecx, [esp + 0x20]
push esi
call fcn.00410fe2
xor eax, eax
test byte [esp + 0x28], 1
je 0x405626
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0xc0], eax
mov word [esp + 0x1ec], 0x101
sub esp, 0x14
mov eax, dword [esp + 0x200]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x1f0]
movups xmmword [esp], xmm0
lea ecx, [esp + 0xd4]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0xc0]
test ecx, ecx
je 0x405670
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00410f46
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x4056b8
lea edx, [ecx + 1]
mov dword [eax + 0x10], edx
mov byte [ecx], 0x20
jmp 0x4056c1
test edx, edx
je 0x4056a1
push edx
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x10]
add eax, dword [esp + 0xc]
mov dword [ebx + 0x10], eax
cmp eax, dword [ebx + 0xc]
jae 0x4057a5
lea ecx, [eax + 1]
mov dword [ebx + 0x10], ecx
mov byte [eax], 0xa
jmp 0x4057ae
mov ecx, eax
push 0x20
call fcn.00410e3e
mov dword [esp + 0x13c], str._6llu
mov dword [esp + 0x138], 0x412b50
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x144], edx
mov dword [esp + 0x140], ecx
mov ecx, eax
lea eax, [esp + 0x138]
push eax
call fcn.00410e44
lea ecx, [esp + 0x78]
push dword [esp + 0x48]
call fcn.00410fa6
xor eax, eax
test byte [esp + 0x80], 1
je 0x405721
mov eax, dword [esp + 0x78]
mov dword [esp + 0x78], 0
mov dword [esp + 0xbc], eax
mov word [esp + 0x70], 0x101
sub esp, 0x14
mov eax, dword [esp + 0x84]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x74]
movups xmmword [esp], xmm0
lea ecx, [esp + 0xd0]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x405765
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0x3b9aca00
mul dword [esp + 0x78]
imul ecx, dword [esp + 0x7c], 0x3b9aca00
add ecx, edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
call fcn.00410f46
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x405a86
lea edx, [ecx + 1]
mov dword [eax + 0x10], edx
mov byte [ecx], 0x20
jmp 0x405a8f
mov ecx, ebx
push 0xa
call fcn.00410e3e
lea ebx, [esp + 0x44]
mov eax, esi
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0xc]
mov word [esp + 0x108], 0x105
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], edx
push esi
push 0
push 2
push 0
lea eax, [esp + 0x98]
push eax
lea esi, [esp + 0x10c]
push esi
call fcn.00410f10
add esp, 0x18
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], eax
mov word [esp + 0xdc], 0x105
mov eax, dword [esp + 8]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], edi
sub esp, 0x1c
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x18], eax
movups xmm0, xmmword [esp + 0xe8]
movups xmmword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [esp], xmm0
call fcn.00406220
add esp, 0x1c
mov ecx, esi
push 0
push 0
push 0
push dword [esp + 0x94]
call fcn.00410e8c
lea ecx, [esp + 0x60]
push ebx
call fcn.00410fe8
xor eax, eax
test byte [esp + 0x68], 1
je 0x40587b
mov eax, dword [esp + 0x60]
mov dword [esp + 0x60], 0
mov dword [esp + 0xb4], eax
mov word [esp + 0x1ec], 0x101
sub esp, 0x14
mov eax, dword [esp + 0x200]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x1f0]
movups xmmword [esp], xmm0
lea ecx, [esp + 0xc8]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x4058c5
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0xf8]
push dword [esp + 0x64]
push dword [esp + 0x64]
call fcn.00410e38
test byte [esp + 0x68], 1
je 0x4058f5
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x60], 0
test ecx, ecx
je 0x4058f5
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0xf8]
call fcn.00410e92
cmp byte [0x417a64], 1
jne 0x405a1d
lea ecx, [esp + 0x20]
push dword [esp + 0x48]
call fcn.00410fa6
xor eax, eax
test byte [esp + 0x28], 1
je 0x405930
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], eax
mov word [esp + 0x108], 0x101
sub esp, 0x14
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x10c]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x4c]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x405971
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0x3b9aca00
mul dword [esp + 0x20]
imul ecx, dword [esp + 0x24], 0x3b9aca00
mov esi, dword [esp + 0x88]
add ecx, edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], eax
sub esp, 0x14
movsd xmm0, qword [esp + 0x8c]
movsd qword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x74]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.00410f04
add esp, 0x14
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
mov word [esp + 0x70], 0x101
sub esp, 0x1c
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
movups xmm0, xmmword [esp + 0x7c]
movups xmmword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x94]
movsd qword [esp], xmm0
call fcn.00406220
add esp, 0x1c
test byte [esp + 0x28], 1
je 0x405a1d
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], 0
test ecx, ecx
je 0x405a1d
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x88]
call sub.msvcrt.dll__close
add esp, 4
test eax, eax
jne 0x4060af
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x144]
cmp eax, ecx
je 0x405a4f
push eax
call sub.msvcrt.dll_free
add esp, 4
test byte [esp + 0x14], 1
je 0x405f00
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x405f00
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0xb0], 1
je 0x404ef0
jmp 0x405f0e
mov ecx, eax
push 0x20
call fcn.00410e3e
mov dword [esp + 0x138], str.0:_b__e__H:_M__Y
mov dword [esp + 0x13c], 0x12
lea ecx, [esp + 0x150]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], 1
mov dword [esp + 0x148], 0x412b60
lea ecx, [esp + 0x90]
mov dword [esp + 0x14c], ecx
lea ecx, [esp + 0x148]
mov dword [esp + 0x150], ecx
mov ecx, eax
lea eax, [esp + 0x138]
push eax
call fcn.00410e4a
call fcn.00410f46
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x405b16
lea edx, [ecx + 1]
mov dword [eax + 0x10], edx
mov byte [ecx], 0x20
test byte [esp + 0x80], 1
jne 0x405b29
jmp 0x405b3e
mov ecx, eax
push 0x20
call fcn.00410e3e
test byte [esp + 0x80], 1
je 0x405b3e
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x78], 0
test ecx, ecx
je 0x405b3e
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x28], 1
je 0x405b5a
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], 0
test ecx, ecx
je 0x405b5a
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x40], 1
je 0x405b76
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
test ecx, ecx
je 0x405b76
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x1c], 1
je 0x405b92
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x405b92
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x14], 1
je 0x405bae
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x405bae
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x44]
test byte [eax + 0x3c], 8
jne 0x405be0
call fcn.00410f46
mov ebx, eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub ecx, eax
cmp ecx, edi
jae 0x405cd8
mov ecx, ebx
push edi
push dword [esp + 0xc]
call fcn.00410e38
jmp 0x405ced
mov word [esp + 0x148], 0x105
mov eax, dword [esp + 8]
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], edi
push 0
lea eax, [esp + 0x13c]
push eax
call fcn.00410f16
add esp, 8
test al, al
jne 0x405ea6
movzx eax, byte [0x417a50]
mov ecx, eax
shr ecx, 1
test al, 1
mov eax, dword [0x417a58]
mov edx, 0x417a51
cmove eax, edx
mov dword [esp + 0x88], eax
cmovne ecx, dword [0x417a54]
mov dword [esp + 0x8c], ecx
sub esp, 0xc
movsd xmm0, qword [esp + 0x94]
movsd qword [esp], xmm0
mov dword [esp + 8], 0
call fcn.00410f1c
add esp, 0xc
test edx, edx
je 0x405ea6
mov ebx, edx
mov esi, eax
call fcn.00410f46
mov dword [esp + 0xc], eax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb4], esi
sub esp, 0x10
movsd xmm0, qword [esp + 0xc4]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x148]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.00410f22
add esp, 0x10
movzx eax, byte [esp + 0x138]
test al, 1
je 0x405e53
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
jmp 0x405e5c
test edi, edi
je 0x405ced
push edi
push dword [esp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [ebx + 0x10], edi
cmp byte [0x417e82], 1
jne 0x405edc
call fcn.00410f46
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 2
lea esi, [esp + 0x44]
ja 0x405d20
mov ecx, eax
push 3
push 0x412b3e
call fcn.00410e38
jmp 0x405d2d
mov byte [edx + 2], pe_nt_image_headers32
mov word [edx], 0x3020
add dword [eax + 0x10], 3
mov dword [esp + 8], eax
mov ecx, esi
call fcn.00410fd0
movzx ecx, word [esp + 0x54]
add ecx, eax
adc edx, 0
mov eax, ecx
or eax, edx
je 0x405d95
mov esi, 0x11
mov eax, edx
nop
mov edi, ecx
and edi, 0xf
movzx ebx, byte [edi + str.0123456789ABCDEF]
or bl, 0x20
mov byte [esp + esi + 0x137], bl
mov edi, edx
shld edi, ecx, 0x1c
dec esi
shr eax, 4
mov ebx, 0xf
cmp ebx, ecx
mov ecx, 0
sbb ecx, edx
mov ecx, edi
mov edx, eax
jb 0x405d50
mov ebx, 0x11
sub ebx, esi
cmp ebx, 0xfffffff0
jb 0x405db2
jmp 0x4061df
mov byte [esp + 0x148], 0x30
mov esi, 0x10
mov ebx, 0x11
sub ebx, esi
cmp ebx, 0xfffffff0
jae 0x4061df
cmp ebx, 0xa
ja 0x405dca
mov eax, ebx
add al, bl
mov byte [esp + 0x20], al
lea edi, [esp + 0x21]
cmp esi, 0x11
jne 0x405dfb
jmp 0x405e10
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0xc]
or ebx, 0xf
lea eax, [ebx + 1]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov dword [esp + 0x28], eax
add ebx, 2
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x24], ebx
cmp esi, 0x11
je 0x405e10
lea eax, [esp + esi]
add eax, 0x138
push ebx
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, ebx
mov byte [edi], 0
movzx eax, byte [esp + 0x20]
test al, 1
je 0x405e26
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x405e2c
shr eax, 1
lea edx, [esp + 0x21]
mov ecx, dword [esp + 8]
push eax
push edx
call fcn.00410e38
test byte [esp + 0x20], 1
je 0x405edc
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x405edc
shr eax, 1
lea edx, [esp + 0x139]
mov ecx, dword [esp + 0xc]
push eax
push edx
call fcn.00410e38
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x405e84
lea edx, [ecx + 1]
mov dword [eax + 0x10], edx
mov byte [ecx], 0x2f
test byte [esp + 0x138], 1
jne 0x405e97
jmp 0x405ea6
mov ecx, eax
push 0x2f
call fcn.00410e3e
test byte [esp + 0x138], 1
je 0x405ea6
push dword [esp + 0x140]
call sub.libc.dll_operator_delete_void_
add esp, 4
call fcn.00410f46
mov ebx, eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub ecx, eax
cmp ecx, edi
jae 0x405ec7
mov ecx, ebx
push edi
push dword [esp + 0xc]
call fcn.00410e38
jmp 0x405edc
test edi, edi
je 0x405edc
push edi
push dword [esp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [ebx + 0x10], edi
call fcn.00410f46
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x405f32
lea edx, [ecx + 1]
mov dword [eax + 0x10], edx
mov byte [ecx], 0xa
nop word cs:[eax + eax]
test byte [esp + 0xb0], 1
je 0x404ef0
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xa8], 0
test ecx, ecx
je 0x404ef0
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404ef0
mov ecx, eax
push 0xa
call fcn.00410e3e
test byte [esp + 0xb0], 1
je 0x404ef0
jmp 0x405f0e
mov ecx, dword [esp + 0xe0]
test ecx, ecx
je 0x405f5b
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x48], 0
test ecx, ecx
je 0x405f70
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x405f80
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0xe4]
test ecx, ecx
je 0x405f90
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], 0
mov word [esp + 0x148], 0x101
sub esp, 0x14
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x14c]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x58]
call fcn.00404c30
add esp, 0x14
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x405fdd
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x405fea
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [0x417ee4]
mov eax, dword [0x417ee8]
cmp edi, eax
jne 0x4060d7
cmp dword [esp + 0x1f8], 0
je 0x40604b
mov esi, dword [esp + 0x1f4]
test esi, esi
je 0x40604b
xor edi, edi
jmp 0x406025
inc edi
cmp esi, edi
je 0x40604b
mov eax, dword [esp + 0x1f0]
mov eax, dword [eax + edi*4]
cmp eax, 0xfffffffc
je 0x406020
test eax, eax
je 0x406020
mov ecx, dword [eax]
add ecx, 9
push 4
push ecx
push eax
call fcn.00410ebc
add esp, 0xc
jmp 0x406020
push dword [esp + 0x1f0]
call sub.msvcrt.dll_free
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00410fbe
test al, al
jne 0x40605a
test byte [esi + 0x3c], 8
je 0x40607a
mov byte [0x417e90], 1
mov dword [esp + 0x138], 0
lea eax, [esp + 0x138]
mov ecx, 7
mov edx, esi
push 0
push eax
call fcn.00406ef0
add esp, 8
mov ecx, dword [esp + 0x138]
test ecx, ecx
jne 0x404da2
jmp 0x40605a
mov dword [esp + 0x20], str.Could_not_close_the_file
mov word [esp + 0x30], 0x103
sub esp, 0x14
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x34]
movups xmmword [esp], xmm0
call fcn.00404060
mov dword [esp + 0x34], eax
jmp 0x4060fa
movups xmm0, xmmword [str._was_not_found_n]
movups xmmword [eax], xmm0
add dword [esi + 0x10], 0x10
mov eax, dword [esp + 0x34]
add edi, 8
cmp edi, eax
je 0x4061d8
mov eax, dword [edi]
mov dword [esp + 8], eax
mov ebx, dword [edi + 4]
call fcn.00410f40
mov ecx, dword [0x417f10]
mov edx, dword [0x417f14]
mov dword [esp + 0xfc], edx
mov dword [esp + 0xf8], ecx
sub esp, 0x10
movsd xmm0, qword [esp + 0x108]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.00410f76
add esp, 0x10
mov esi, eax
mov eax, dword [eax + 0x10]
cmp dword [esi + 0xc], eax
je 0x406177
mov byte [eax], 0x27
mov eax, dword [esi + 0x10]
inc eax
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, ebx
jae 0x406193
mov ecx, esi
push ebx
push dword [esp + 0xc]
call fcn.00410e38
mov esi, eax
mov eax, dword [eax + 0x10]
jmp 0x4061ad
mov ecx, esi
push 1
push 0x4120aa
call fcn.00410e38
mov esi, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, ebx
jb 0x406164
test ebx, ebx
je 0x4061ad
push ebx
push dword [esp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x10]
add eax, ebx
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, 0xf
ja 0x4060dd
mov ecx, esi
push 0x10
push str._was_not_found_n
call fcn.00410e38
mov eax, dword [esp + 0x34]
add edi, 8
cmp edi, eax
jne 0x4060fa
push 1
call sub.msvcrt.dll_exit
lea ecx, [esp + 0x20]
call fcn.00404b90
mov dword [esp + 0x138], str.extracting_from_a_thin_archive_is_not_supported
mov word [esp + 0x148], 0x103
sub esp, 0x14
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x14c]
movups xmmword [esp], xmm0
call fcn.00404060
int3