Function at 0x413c60
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov dword [0x475610], 0
mov dword [0x475620], 0
mov dword [0x475640], 0
cmp dword [0x46a090], 0
je 0x413c9e
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call fcn.00413aad
mov dword [0x479760], 0xfe
mov edx, dword [ebp + 0x10]
test byte [edx + 0x120], 0x40
je 0x413cbe
mov eax, 0
jmp 0x414c56
mov esi, dword [ebp + 0xc]
mov edi, 0x413b72
mov ecx, 2
cld
repe cmpsb byte [esi], byte es:[edi]
seta cl
setb al
cmp cl, al
je 0x413cf1
mov esi, dword [ebp + 0xc]
mov edi, 0x413b74
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
seta cl
setb al
cmp cl, al
jne 0x413cfa
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x28], 1
jmp 0x413d10
mov edx, dword [ebp + 0x10]
lea edi, [edx + 0x29]
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx + 0x28], cl
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x28]
add al, 0x21
mov byte [edx + 8], al
movzx eax, al
mov dword [0x475630], eax
test al, 1
je 0x413d38
inc eax
mov dword [0x475630], eax
movzx eax, byte [0x475630]
mov byte [edx + 8], al
cmp dword [0x475630], 0x45
jg 0x413d4b
mov dword [0x475630], 0x46
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x10]
and eax, 0xf000
cmp eax, 0x8000
jne 0x413ed5
cmp dword [0x46a144], 0
je 0x413ed5
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x148], 0
je 0x413ed5
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x2a
cmp eax, dword [0x479760]
jle 0x413dae
mov dword [esp + 4], 0x121
mov dword [esp], 0x413b77
call fcn.004138c0
mov ebx, dword [0x475610]
mov byte [ebx + 0x475650], 0x41
mov byte [ebx + 0x475651], 0x41
mov byte [ebx + 0x475652], 0xe
mov byte [ebx + 0x475653], 2
lea ecx, [ebx + 4]
mov dword [0x475610], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x148]
movzx eax, byte [eax + 0x48]
mov byte [ecx + 0x475650], al
lea ecx, [ebx + 5]
mov dword [0x475610], ecx
mov eax, dword [edx + 0x148]
movzx eax, byte [eax + 0x49]
mov byte [ecx + 0x475650], al
lea ecx, [ebx + 6]
mov dword [0x475610], ecx
mov eax, dword [edx + 0x148]
movzx eax, byte [eax + 0x4a]
mov byte [ecx + 0x475650], al
lea ecx, [ebx + 7]
mov dword [0x475610], ecx
mov eax, dword [edx + 0x148]
movzx eax, byte [eax + 0x4b]
mov byte [ecx + 0x475650], al
lea ecx, [ebx + 8]
mov dword [0x475610], ecx
mov eax, dword [edx + 0x148]
movzx eax, byte [eax + 0x4d]
mov byte [ecx + 0x475650], al
lea ecx, [ebx + 9]
mov dword [0x475610], ecx
mov eax, dword [edx + 0x148]
movzx eax, byte [eax + 0x4e]
mov byte [ecx + 0x475650], al
lea ecx, [ebx + 0xa]
mov dword [0x475610], ecx
mov eax, dword [edx + 0x148]
movzx eax, byte [eax + 0x4f]
mov byte [ecx + 0x475650], al
lea ecx, [ebx + 0xb]
mov dword [0x475610], ecx
mov eax, dword [edx + 0x148]
movzx eax, byte [eax + 0x50]
mov byte [ecx + 0x475650], al
lea ecx, [ebx + 0xc]
mov dword [0x475610], ecx
mov eax, dword [edx + 0x148]
movsx eax, byte [eax + 0x39]
mov byte [ecx + 0x475650], al
lea ecx, [ebx + 0xd]
mov dword [0x475610], ecx
mov eax, dword [edx + 0x148]
movzx eax, byte [eax + 0x38]
mov byte [ecx + 0x475650], al
lea eax, [ebx + 0xe]
mov dword [0x475610], eax
cmp dword [0x46a08c], 0
je 0x414bf3
test byte [ebp + 0x1c], 0x10
je 0x413f47
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0x53
mov byte [eax + 0x475651], 0x50
mov byte [eax + 0x475652], 7
mov byte [eax + 0x475653], 1
mov byte [eax + 0x475654], 0xbe
mov byte [eax + 0x475655], 0xef
lea edx, [eax + 6]
mov dword [0x475610], edx
cmp dword [0x46a090], 0
je 0x413f35
mov byte [edx + 0x475650], 0xe
add eax, 7
jmp 0x413f42
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0
inc eax
mov dword [0x475610], eax
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x21
cmp eax, dword [0x479760]
jle 0x413f77
mov dword [esp + 4], 0x14b
mov dword [esp], 0x413b7a
call fcn.004138c0
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0x52
mov byte [eax + 0x475651], 0x52
mov byte [eax + 0x475652], 5
mov byte [eax + 0x475653], 1
lea edx, [eax + 4]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], 0
mov byte [edx + 0x475650], 0
add eax, 5
mov dword [0x475610], eax
mov esi, dword [ebp + 0xc]
mov edi, 0x413b72
mov ecx, 2
cld
repe cmpsb byte [esi], byte es:[edi]
seta cl
setb al
cmp cl, al
je 0x4141c0
mov esi, dword [ebp + 0xc]
mov edi, 0x413b74
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
seta cl
setb al
cmp cl, al
je 0x4141c0
cmp dword [0x46a150], 0
je 0x414028
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x148], 0
je 0x414028
cmp dword [eax + 0x158], 0
je 0x414028
mov ebx, dword [eax + 0x148]
mov edi, ebx
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
lea edi, [ecx - 1]
mov dword [ebp - 0x38], ebx
jmp 0x414040
mov edi, dword [ebp + 0xc]
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
lea edi, [ecx - 1]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x38], edx
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x22
cmp eax, dword [0x479760]
jle 0x414070
mov dword [esp + 4], 0x168
mov dword [esp], 0x413b7d
call fcn.004138c0
test edi, edi
je 0x4141c0
mov ebx, edi
mov dword [ebp - 0x34], 0
mov esi, dword [0x475630]
lea eax, [esi + edi]
mov ecx, dword [0x475610]
mov edx, ecx
sub edx, dword [0x475620]
lea eax, [edx + eax + 0x21]
cmp eax, dword [0x479760]
jle 0x4140b8
lea ecx, [esi + edx]
mov eax, dword [0x479760]
sub eax, ecx
lea ebx, [eax - 0x21]
mov dword [ebp - 0x34], 1
cmp ebx, 0xf8
jle 0x4140c8
mov ebx, 0xf8
inc dword [ebp - 0x34]
test ebx, ebx
jns 0x4140e4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x413b90
mov dword [esp], 0xffffffff
call fcn.004486d2
mov ecx, dword [0x475610]
mov byte [ecx + 0x475650], 0x4e
mov byte [ecx + 0x475651], 0x4d
mov al, bl
add al, 5
mov byte [ecx + 0x475652], al
mov byte [ecx + 0x475653], 1
lea esi, [ecx + 5]
mov dword [0x475610], esi
cmp edi, ebx
setne byte [ecx + 0x475654]
or dword [ebp - 0x30], 8
cmp dword [0x46a150], 0
je 0x414162
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x148], 0
je 0x414162
cmp dword [eax + 0x158], 0
je 0x414162
mov eax, dword [0x46a1ac]
mov dword [esp + 0x10], eax
mov eax, dword [0x46a1b0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
lea eax, [esi + 0x475650]
jmp 0x414189
mov eax, dword [0x46a1ac]
mov dword [esp + 0x10], eax
mov eax, dword [0x46a1a8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [0x475610]
add eax, 0x475650
mov dword [esp], eax
call fcn.00413790
add dword [ebp - 0x38], ebx
add dword [0x475610], ebx
sub edi, ebx
je 0x4141c0
cmp dword [ebp - 0x34], 0
je 0x4141b8
mov dword [esp + 4], 0x191
mov dword [esp], 0x413b7d
call fcn.004138c0
test edi, edi
jne 0x414078
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x40
cmp eax, dword [0x479760]
jle 0x4141f0
mov dword [esp + 4], 0x197
mov dword [esp], 0x413bb6
call fcn.004138c0
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0x50
mov byte [eax + 0x475651], 0x58
mov byte [eax + 0x475652], 0x24
mov byte [eax + 0x475653], 1
add eax, 4
mov dword [0x475610], eax
or dword [ebp - 0x30], 1
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 0x10]
mov dword [esp + 4], ecx
add eax, 0x475650
mov dword [esp], eax
call fcn.0040eaf7
mov eax, dword [0x475610]
add eax, 8
mov dword [0x475610], eax
mov edx, dword [ebp + 0x18]
movzx ecx, word [edx + 0x14]
mov dword [esp + 4], ecx
add eax, 0x475650
mov dword [esp], eax
call fcn.0040eaf7
mov eax, dword [0x475610]
add eax, 8
mov dword [0x475610], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 0x18]
mov dword [esp + 4], ecx
add eax, 0x475650
mov dword [esp], eax
call fcn.0040eaf7
mov eax, dword [0x475610]
add eax, 8
mov dword [0x475610], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [esp + 4], ecx
add eax, 0x475650
mov dword [esp], eax
call fcn.0040eaf7
add dword [0x475610], 8
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x10]
and eax, 0xf000
cmp eax, 0x2000
je 0x4142c5
cmp eax, 0x6000
jne 0x414366
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x30
cmp eax, dword [0x479760]
jle 0x4142f5
mov dword [esp + 4], 0x1b0
mov dword [esp], 0x413bb9
call fcn.004138c0
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0x50
mov byte [eax + 0x475651], 0x4e
mov byte [eax + 0x475652], 0x14
mov byte [eax + 0x475653], 1
add eax, 4
mov dword [0x475610], eax
or dword [ebp - 0x30], 2
mov edx, dword [ebp + 0x18]
movzx ecx, word [edx + 0x22]
mov dword [esp + 4], ecx
add eax, 0x475650
mov dword [esp], eax
call fcn.0040eaf7
mov eax, dword [0x475610]
add eax, 8
mov dword [0x475610], eax
mov edx, dword [ebp + 0x18]
movzx ecx, word [edx + 0x20]
mov dword [esp + 4], ecx
add eax, 0x475650
mov dword [esp], eax
call fcn.0040eaf7
add dword [0x475610], 8
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x10]
and eax, 0xf000
cmp eax, 0xa000
jne 0x414802
mov dword [esp + 8], 0x103
mov dword [esp + 4], 0x479650
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_readlink
mov dword [ebp - 0x44], eax
shr eax, 0x1f
dec eax
and eax, dword [ebp - 0x44]
mov byte [eax + 0x479650], 0
mov edi, 0x479650
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x44], ecx
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0x12
mov dword [esp], eax
call fcn.0040eaf7
mov dword [ebp - 0x48], 0x479650
or dword [ebp - 0x30], 4
cmp dword [0x44d080], 0
jne 0x414473
mov ebx, 0
mov dword [ebp - 0x4c], 0x479650
cmp byte [0x479650], 0
je 0x414419
mov edx, dword [ebp - 0x4c]
cmp byte [edx], 0x2f
jne 0x41440d
add ebx, 4
jmp 0x41440e
inc ebx
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
cmp byte [eax], 0
jne 0x414400
cmp ebx, 0xfa
jle 0x414440
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x48]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x413bd0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
mov ecx, ebx
add ecx, dword [0x475630]
mov eax, dword [0x475610]
sub eax, dword [0x475620]
lea eax, [eax + ecx + 0x30]
cmp eax, dword [0x479760]
jle 0x414473
mov dword [esp + 4], 0x207
mov dword [esp], 0x413c14
call fcn.004138c0
cmp dword [ebp - 0x44], 0
je 0x414802
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x30
cmp eax, dword [0x479760]
jle 0x4144ad
mov dword [esp + 4], 0x20b
mov dword [esp], 0x413c18
call fcn.004138c0
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0x53
mov byte [eax + 0x475651], 0x4c
lea edx, [eax + 2]
mov dword [ebp - 0x3c], edx
mov byte [edx + 0x475650], 0x14
mov byte [eax + 0x475653], 1
mov byte [eax + 0x475654], 0
add eax, 5
mov dword [0x475610], eax
mov dword [ebp - 0x40], 5
mov eax, dword [ebp - 0x48]
cmp byte [eax], 0
je 0x4147e3
mov dword [esp + 4], 0x2f
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
call sub.cygwin1.dll_strchr
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x414516
dec dword [ebp - 0x44]
mov byte [eax], 0
mov eax, dword [ebp - 0x48]
cmp byte [eax], 0x2e
jne 0x4145e8
cmp byte [eax + 1], 0x2e
jne 0x414586
cmp byte [eax + 2], 0
jne 0x414586
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x1e
cmp eax, dword [0x479760]
jle 0x41455e
mov dword [esp + 4], 0x222
mov dword [esp], 0x413c1b
jmp 0x41461b
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 4
mov byte [eax + 0x475651], 0
add eax, 2
mov dword [0x475610], eax
add dword [ebp - 0x40], 2
sub dword [ebp - 0x44], 2
jmp 0x4147c9
mov eax, dword [ebp - 0x48]
cmp byte [eax], 0x2e
jne 0x4145e8
cmp byte [eax + 1], 0
jne 0x4145e8
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x1e
cmp eax, dword [0x479760]
jle 0x4145c1
mov dword [esp + 4], 0x234
mov dword [esp], 0x413c25
jmp 0x41461b
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 2
mov byte [eax + 0x475651], 0
add eax, 2
mov dword [0x475610], eax
add dword [ebp - 0x40], 2
dec dword [ebp - 0x44]
jmp 0x4147c9
mov eax, dword [ebp - 0x48]
cmp byte [eax], 0
jne 0x414659
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x1e
cmp eax, dword [0x479760]
jle 0x414635
mov dword [esp + 4], 0x246
mov dword [esp], 0x413c30
call fcn.004138c0
cmp dword [ebp - 0x4c], 0
je 0x4147e3
mov edx, dword [ebp - 0x4c]
mov byte [edx], 0x2f
jmp 0x4146ce
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 8
mov byte [eax + 0x475651], 0
add eax, 2
mov dword [0x475610], eax
add dword [ebp - 0x40], 2
jmp 0x4147c9
cmp dword [0x44d07c], 0
je 0x41467e
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x22
cmp eax, dword [0x479760]
jmp 0x4146a8
mov edi, dword [ebp - 0x48]
cld
mov al, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, dword [0x475630]
mov eax, dword [0x475610]
sub eax, dword [0x475620]
lea ecx, [eax + ecx + 0x21]
cmp ecx, dword [0x479760]
jle 0x4146d6
mov dword [esp + 4], 0x25e
mov dword [esp], 0x413c38
call fcn.004138c0
cmp dword [ebp - 0x4c], 0
je 0x4147e3
mov eax, dword [ebp - 0x4c]
mov byte [eax], 0x2f
inc dword [ebp - 0x44]
jmp 0x4147e3
mov edi, dword [ebp - 0x48]
cld
mov al, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edi, ecx
dec edi
je 0x4147c9
mov ebx, edi
cmp edi, 0xf8
jle 0x4146fd
mov ebx, 0xf8
mov dword [ebp - 0x34], 0
mov edx, dword [0x475630]
mov dword [ebp - 0x7c], edx
add edx, ebx
mov esi, dword [0x475620]
mov ecx, dword [0x475610]
mov eax, ecx
sub eax, esi
lea edx, [eax + edx + 0x1e]
cmp edx, dword [0x479760]
jle 0x414743
mov eax, dword [0x479760]
sub eax, dword [ebp - 0x7c]
sub esi, ecx
mov dword [ebp - 0x58], esi
lea ebx, [esi + eax - 0x1e]
mov dword [ebp - 0x34], 1
mov eax, dword [0x475610]
cmp ebx, edi
setne byte [eax + 0x475650]
mov byte [eax + 0x475651], bl
add eax, 2
mov dword [0x475610], eax
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0x48]
mov dword [esp + 4], edx
add eax, 0x475650
mov dword [esp], eax
call sub.cygwin1.dll_strncpy
add dword [0x475610], ebx
mov eax, dword [ebp - 0x40]
lea eax, [ebx + eax + 2]
mov dword [ebp - 0x40], eax
add dword [ebp - 0x48], ebx
sub dword [ebp - 0x44], ebx
sub edi, ebx
cmp dword [ebp - 0x34], 0
je 0x4147c1
mov dword [esp + 4], 0x28c
mov dword [esp], 0x413c3d
call fcn.004138c0
cmp dword [ebp - 0x4c], 0
je 0x4147e3
mov edx, dword [ebp - 0x4c]
mov byte [edx], 0x2f
inc dword [ebp - 0x44]
mov dword [ebp - 0x4c], 0
jmp 0x4147c9
test edi, edi
jne 0x4146ee
cmp dword [ebp - 0x4c], 0
je 0x4147e3
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x4c]
cmp byte [edx + 1], 0
jne 0x4144f6
movzx eax, byte [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov byte [edx + 0x475650], al
cmp dword [ebp - 0x44], 0
je 0x414802
mov byte [edx + 0x475652], 1
jmp 0x41447d
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x36
cmp eax, dword [0x479760]
jle 0x414832
mov dword [esp + 4], 0x2ac
mov dword [esp], 0x413c4b
call fcn.004138c0
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0x54
mov byte [eax + 0x475651], 0x46
mov byte [eax + 0x475652], 0x1a
mov byte [eax + 0x475653], 1
mov byte [eax + 0x475654], 0xe
add eax, 5
mov dword [0x475610], eax
or dword [ebp - 0x30], 0x80
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 0x38]
mov dword [esp + 4], ecx
add eax, 0x475650
mov dword [esp], eax
call fcn.0040515a
mov eax, dword [0x475610]
add eax, 7
mov dword [0x475610], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 0x30]
mov dword [esp + 4], ecx
add eax, 0x475650
mov dword [esp], eax
call fcn.0040515a
mov eax, dword [0x475610]
add eax, 7
mov dword [0x475610], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 0x40]
mov dword [esp + 4], ecx
add eax, 0x475650
mov dword [esp], eax
call fcn.0040515a
mov eax, dword [0x475610]
add eax, 7
mov dword [0x475610], eax
test byte [ebp + 0x1c], 1
je 0x414933
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x20
cmp eax, dword [0x479760]
jle 0x414906
mov dword [esp + 4], 0x2c6
mov dword [esp], 0x413c4e
call fcn.004138c0
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0x52
mov byte [eax + 0x475651], 0x45
mov byte [eax + 0x475652], 4
mov byte [eax + 0x475653], 1
add eax, 4
mov dword [0x475610], eax
or dword [ebp - 0x30], 0x40
test byte [ebp + 0x1c], 2
je 0x4149b2
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x28
cmp eax, dword [0x479760]
jle 0x414969
mov dword [esp + 4], 0x2d0
mov dword [esp], 0x413c51
call fcn.004138c0
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0x50
mov byte [eax + 0x475651], 0x4c
mov byte [eax + 0x475652], 0xc
mov byte [eax + 0x475653], 1
add eax, 4
mov dword [0x475610], eax
mov dword [esp + 4], 0
add eax, 0x475650
mov dword [esp], eax
call fcn.0040eaf7
add dword [0x475610], 8
or dword [ebp - 0x30], 0x20
test byte [ebp + 0x1c], 4
je 0x414a31
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x28
cmp eax, dword [0x479760]
jle 0x4149e8
mov dword [esp + 4], 0x2dd
mov dword [esp], 0x413c54
call fcn.004138c0
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0x43
mov byte [eax + 0x475651], 0x4c
mov byte [eax + 0x475652], 0xc
mov byte [eax + 0x475653], 1
add eax, 4
mov dword [0x475610], eax
mov dword [esp + 4], 0
add eax, 0x475650
mov dword [esp], eax
call fcn.0040eaf7
add dword [0x475610], 8
or dword [ebp - 0x30], 0x10
cmp dword [0x46a114], 0
je 0x414ba4
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x10]
and eax, 0xf000
cmp eax, 0x8000
jne 0x414ba4
mov esi, 0
mov dword [ebp - 0x5c], 1
lea edi, [ebp - 0x28]
cld
mov ecx, 4
mov eax, esi
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x413c57
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.cygwin1.dll__fopen64
mov ebx, eax
test eax, eax
je 0x414af6
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sub.cygwin1.dll_fread
cmp eax, 0x10
setne al
movzx eax, al
dec eax
and dword [ebp - 0x5c], eax
lea esi, [ebp - 0x28]
mov edi, 0x413b6a
mov ecx, 8
cld
repe cmpsb byte [esi], byte es:[edi]
seta cl
setb al
cmp cl, al
setne al
movzx eax, al
dec eax
and dword [ebp - 0x5c], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0040eb26
mov esi, eax
movzx eax, byte [ebp - 0x1c]
mov dword [ebp - 0x60], eax
movzx edi, byte [ebp - 0x1b]
mov dword [esp], ebx
call sub.cygwin1.dll_fclose
jmp 0x414b09
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov edi, 0
cmp dword [ebp - 0x5c], 0
je 0x414ba4
mov eax, dword [0x475610]
sub eax, dword [0x475620]
add eax, dword [0x475630]
add eax, 0x2c
cmp eax, dword [0x479760]
jle 0x414b43
mov dword [esp + 4], 0x31f
mov dword [esp], 0x413c5a
call fcn.004138c0
mov eax, dword [0x475610]
mov byte [eax + 0x475650], 0x5a
mov byte [eax + 0x475651], 0x46
mov byte [eax + 0x475652], 0x10
mov byte [eax + 0x475653], 1
mov byte [eax + 0x475654], 0x70
mov byte [eax + 0x475655], 0x7a
movzx edx, byte [ebp - 0x60]
mov byte [eax + 0x475656], dl
mov edx, edi
mov byte [eax + 0x475657], dl
add eax, 8
mov dword [0x475610], eax
mov dword [esp + 4], esi
add eax, 0x475650
mov dword [esp], eax
call fcn.0040eaf7
add dword [0x475610], 8
test byte [ebp + 0x1c], 8
je 0x414bbe
mov dword [esp + 4], 0x333
mov dword [esp], 0x413c5d
call fcn.004138c0
movzx eax, byte [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x475650], al
cmp dword [0x475620], 0
je 0x414bf3
mov ecx, dword [0x475620]
mov eax, dword [0x475610]
sub eax, ecx
mov dword [esp + 4], eax
lea eax, [ecx + 0x475648]
mov dword [esp], eax
call fcn.0040eaf7
mov eax, dword [0x475610]
mov dword [esp], eax
call fcn.0040a4e0
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x134], eax
mov eax, dword [0x475610]
mov dword [edx + 0x13c], eax
cmp dword [0x475640], 0
jne 0x414c24
mov eax, dword [0x475610]
jmp 0x414c29
mov eax, dword [0x475640]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x138], eax
mov ecx, dword [edx + 0x134]
mov eax, dword [0x475610]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x475650
mov dword [esp], ecx
call sub.cygwin1.dll_memcpy
mov eax, dword [0x475610]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret