Function at 0x4c0e80
Capabilities:
Check os version
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x54eba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x5ab980]
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x298], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
push esi
lea ecx, [esp + 0xc0]
mov byte [esp + 0x29c], 0xb
mov dword [esp + 0x9c], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x24], esi
call fcn.0042d230
push fcn.005128e4
push 0x432ae0
push 6
lea eax, [esp + 0xa8]
push 4
push eax
mov byte [esp + 0x2ac], 0xc
call fcn.004fa7f1
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 0x80
push 3
push esi
push esi
push bind
push str.C:ABTXLOG
mov byte [esp + 0x2b4], 0xd
call ebp
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
jne 0x4c107a
push fcn.005128e4
push 6
lea ecx, [esp + 0xa4]
push 4
push ecx
mov byte [esp + 0x2a8], 0xc
call fcn.004fa713
lea ecx, [esp + 0xbc]
mov byte [esp + 0x298], 0xb
call fcn.0042d3e0
lea ecx, [esp + 0x48]
mov byte [esp + 0x298], 0xa
call fcn.005128e4
lea ecx, [esp + 0x40]
mov byte [esp + 0x298], 9
call fcn.005128e4
lea ecx, [esp + 0x44]
mov byte [esp + 0x298], 8
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x298], 7
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x298], 6
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x298], 5
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x298], 4
call fcn.005128e4
lea ecx, [esp + 0x38]
mov byte [esp + 0x298], 3
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x298], 2
call fcn.005128e4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x298], 1
call fcn.005128e4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x298], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], edi
call fcn.005128e4
or eax, edi
jmp 0x4c2239
mov edx, dword [esp + 0x2a0]
lea ecx, [esp + 0x44]
add edx, 0x14
push edx
call fcn.00512a1d
mov eax, dword [esp + 0x44]
cmp dword [eax - 8], esi
jne 0x4c10a5
push str.C:ABTXRPT.TXT
lea ecx, [esp + 0x48]
call fcn.00512a6d
lea ecx, [esp + 0x44]
push ecx
call fcn.00420150
mov edx, dword [esp + 0x48]
add esp, 4
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push edx
call ebp
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4c11e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push fcn.005128e4
push 6
lea eax, [esp + 0xa4]
push 4
push eax
mov byte [esp + 0x2a8], 0xc
call fcn.004fa713
lea ecx, [esp + 0xbc]
mov byte [esp + 0x298], 0xb
call fcn.0042d3e0
lea ecx, [esp + 0x48]
mov byte [esp + 0x298], 0xa
call fcn.005128e4
lea ecx, [esp + 0x40]
mov byte [esp + 0x298], 9
call fcn.005128e4
lea ecx, [esp + 0x44]
mov byte [esp + 0x298], 8
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x298], 7
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x298], 6
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x298], 5
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x298], 4
call fcn.005128e4
lea ecx, [esp + 0x38]
mov byte [esp + 0x298], 3
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x298], 2
call fcn.005128e4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x298], 1
call fcn.005128e4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x298], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], ebp
call fcn.005128e4
mov eax, 0xfffffffe
jmp 0x4c2239
push esi
lea ecx, [esp + 0xc0]
call fcn.0042d520
lea ecx, [esp + 0x18]
push 0x567b
push ecx
call fcn.00422640
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0xbc]
push eax
mov byte [esp + 0x29c], 0xe
call fcn.0042d700
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
lea edx, [esp + 0x18]
push 0x5678
push edx
call fcn.00422640
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0xbc]
push eax
mov byte [esp + 0x29c], 0xf
call fcn.0042d7a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
lea eax, [esp + 0x60]
mov ecx, ebx
push eax
push edi
mov dword [esp + 0x20], esi
call fcn.004c02a0
mov edi, eax
cmp edi, 1
jl 0x4c2126
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x1c]
jle 0x4c128f
inc dword [esp + 0x20]
mov eax, dword [esp + 0x68]
cmp al, 1
je 0x4c13f5
and eax, 0xff
cmp eax, 5
ja case.0x4c138a.5
jmp dword [eax*4 + 0x4c2254]
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x60]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004c0150
cmp eax, 1
jl case.0x4c138a.5
mov eax, dword [esp + 0x69]
and eax, 0xff
sub eax, 5
je 0x4c1328
dec eax
jne 0x4c13d2
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.00512b13
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x29c], 0x10
call fcn.00512a1d
lea ecx, [esp + 0x84]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
jmp 0x4c13d2
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x98]
push ecx
push edx
call fcn.00512b13
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x29c], 0x11
call fcn.00512a1d
lea ecx, [esp + 0x94]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
jmp 0x4c13d2
inc dword [esp + 0x98]
jmp case.0x4c138a.5
mov eax, dword [esp + 0x69]
and eax, 0xff
dec eax
cmp eax, 0xf
ja case.0x4c138a.5
xor ecx, ecx
mov cl, byte [eax + 0x4c2280]
jmp dword [ecx*4 + 0x4c226c]
inc dword [esp + 0x58]
jmp case.0x4c138a.5
inc dword [esp + 0x5c]
jmp case.0x4c138a.5
mov ecx, dword [esp + 0x54]
mov al, byte [esp + 0x6c]
inc ecx
test al, 4
mov dword [esp + 0x54], ecx
je case.0x4c138a.5
inc dword [esp + 0x90]
jmp case.0x4c138a.5
inc dword [esp + 0x8c]
lea edx, [esp + 0x60]
mov ecx, esi
push edx
push ebx
call fcn.004c01d0
mov edi, eax
cmp edi, 1
jl 0x4c13fa
mov eax, dword [esp + 0x18]
mov ecx, esi
inc eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
push eax
push ebx
call fcn.004c02a0
mov edi, eax
cmp edi, 1
jge 0x4c1289
jmp 0x4c13fa
cmp edi, 1
jge 0x4c1405
cmp dword [esp + 0x18], 1
jb 0x4c2126
push 0x566c
lea ecx, [esp + 0x14]
call fcn.00517fef
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x14]
push 0
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
push ebp
call esi
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x4c145f
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push eax
push 0x5674
push edx
call fcn.0050e6da
mov eax, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x14]
mov ecx, dword [eax - 8]
push 0
push edx
push ecx
push eax
push ebp
call esi
cmp edi, 1
jge 0x4c148e
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0x5673
push ecx
call fcn.0050e6da
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, dword [eax - 8]
push 0
push edx
push ecx
push eax
push ebp
call esi
push 0x566d
lea ecx, [esp + 0x14]
call fcn.00517fef
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4c14cf
lea edx, [esp + 0x14]
push 0
push edx
push eax
push ecx
push ebp
call esi
lea ecx, [esp + 0x48]
call fcn.0051286f
mov eax, dword [esp + 0x5c]
cdq
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00423670
mov ebx, eax
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x94]
cdq
push edx
push eax
push ecx
mov byte [esp + 0x2b0], 0x12
call fcn.00423670
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x2b0], 0x13
cdq
push edx
lea edx, [esp + 0xd4]
push eax
push edx
call fcn.00423670
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x78]
mov byte [esp + 0x2bc], 0x14
cdq
push edx
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00423670
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x50]
cdq
push edx
push eax
push ecx
mov byte [esp + 0x2d4], 0x15
call fcn.00423670
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xd4]
mov byte [esp + 0x2d4], 0x16
cdq
push edx
lea edx, [esp + 0x9c]
push eax
push edx
call fcn.00423670
add esp, 0x48
mov ecx, dword [ebx]
mov edx, dword [esp + 0x94]
push ecx
mov byte [esp + 0x29c], 0x17
mov ecx, dword [edx]
mov edx, dword [esp + 0x88]
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [edx]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push 0x566b
push eax
call fcn.0050e6da
add esp, 0x20
lea ecx, [esp + 0x5c]
mov byte [esp + 0x298], 0x16
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x298], 0x15
call fcn.005128e4
lea ecx, [esp + 0xb4]
mov byte [esp + 0x298], 0x14
call fcn.005128e4
lea ecx, [esp + 0xb8]
mov byte [esp + 0x298], 0x13
call fcn.005128e4
lea ecx, [esp + 0x88]
mov byte [esp + 0x298], 0x12
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4c16a2
push 0x5672
lea ecx, [esp + 0x14]
call fcn.00517fef
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
lea ecx, [esp + 0x40]
call fcn.0051286f
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0xbc]
push ebx
push 0
call fcn.0042d8b0
push 1
lea ecx, [esp + 0xc0]
call fcn.0042da00
mov eax, dword [esp + 0x2a0]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4c193d
push 0x566e
lea ecx, [esp + 0x14]
call fcn.00517fef
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
lea eax, [esp + 0x24]
push 0x5679
push eax
call fcn.00422640
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0xbc]
push eax
mov byte [esp + 0x29c], 0x18
call fcn.0042d7a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
push 0
lea ecx, [esp + 0xc0]
call fcn.0042d910
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x20], 0
jle 0x4c1944
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, ebx
call fcn.004c02a0
mov edi, eax
cmp edi, 1
jl 0x4c1944
cmp byte [esp + 0x68], 1
je 0x4c1944
lea ecx, [esp + 0xbc]
call fcn.0042da30
mov eax, dword [esp + 0x274]
test eax, eax
jne 0x4c20de
mov al, byte [esp + 0x68]
cmp al, 3
je 0x4c17d5
cmp al, 2
je 0x4c17d5
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x60]
push ecx
push edx
mov ecx, ebx
call fcn.004c01d0
mov edi, eax
cmp edi, 1
jl 0x4c1944
jmp 0x4c1926
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.004c0150
mov edi, eax
cmp edi, 1
jl 0x4c1944
lea ecx, [esp + 0x30]
call fcn.0051286f
mov eax, dword [esp + 0x6c]
test al, 0x78
je 0x4c1823
shr eax, 3
and eax, 0xf
push eax
lea eax, [esp + 0x34]
push 0x5675
push eax
call fcn.0050e6da
add esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.0051286f
lea ecx, [esp + 0x4c]
call fcn.0051286f
mov cl, byte [esp + 0x6c]
mov eax, dword [esp + 0x70]
and cl, 3
cmp cl, 3
jne 0x4c185e
test eax, eax
je 0x4c189e
push eax
lea edx, [esp + 0x50]
push str._tPort_Error__i_r_n
push edx
call fcn.0050e6c7
add esp, 0xc
jmp 0x4c189e
test eax, eax
je 0x4c189e
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004226f0
add esp, 8
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push ecx
push str._t_s_r_n
push edx
mov byte [esp + 0x2a4], 0x19
call fcn.0050e6c7
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x34]
push eax
call fcn.00512a1d
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x88]
and ecx, 3
push ecx
push edx
mov ecx, ebx
call fcn.004c0de0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push str._s_r_n_t__s___s_r_n_s_s_s
push edx
mov byte [esp + 0x2b8], 0x1a
call fcn.0050e6c7
add esp, 0x20
lea ecx, [esp + 0x88]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4c1766
jmp 0x4c1944
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x2a0]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4c1c01
lea ecx, [esp + 0x28]
call fcn.0051286f
push 0x566f
lea ecx, [esp + 0x14]
call fcn.00517fef
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
lea eax, [esp + 0x24]
push 0x11f
push eax
call fcn.00422640
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0xbc]
push eax
mov byte [esp + 0x29c], 0x1b
call fcn.0042d7a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
push 0
lea ecx, [esp + 0xc0]
call fcn.0042d910
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x4c1c01
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, ebx
call fcn.004c02a0
mov edi, eax
cmp edi, 1
jl 0x4c1c01
cmp byte [esp + 0x68], 1
je 0x4c1c01
lea ecx, [esp + 0xbc]
call fcn.0042da30
mov eax, dword [esp + 0x274]
test eax, eax
jne 0x4c20de
mov al, byte [esp + 0x68]
test al, al
jne 0x4c1a3e
cmp byte [esp + 0x69], 3
je 0x4c1a5f
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x60]
push ecx
push edx
mov ecx, ebx
call fcn.004c01d0
mov edi, eax
cmp edi, 1
jl 0x4c1c01
jmp 0x4c1bec
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.004c0150
mov edi, eax
cmp edi, 1
jl 0x4c1c01
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0xa4]
push ecx
push edx
call fcn.004222e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.004f9670
add esp, 0x14
test eax, eax
je 0x4c1af6
lea edx, [esp + 0x10]
lea ecx, [esp + 0x28]
push edx
call fcn.00512a1d
lea eax, [esp + 0x28]
lea ecx, [esp + 0x34]
push eax
call fcn.00512a1d
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
push ecx
push str._r_n_s_r_n
push edx
call fcn.0050e6c7
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, dword [eax - 8]
push 0
push edx
push ecx
push eax
push ebp
call esi
lea ecx, [esp + 0x30]
call fcn.0051286f
mov eax, dword [esp + 0x6c]
test al, 0x78
je 0x4c1b20
shr eax, 3
and eax, 0xf
push eax
lea eax, [esp + 0x34]
push 0x5675
push eax
call fcn.0050e6da
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.0051286f
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4c1b4a
push eax
lea ecx, [esp + 0x30]
push str.___s_
push ecx
call fcn.0050e6c7
add esp, 0xc
lea ecx, [esp + 0x50]
call fcn.0051286f
test byte [esp + 0x6c], 4
je 0x4c1b7f
push 0x566a
lea ecx, [esp + 0x14]
call fcn.00517fef
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push edx
push str._r_n_t_s
push eax
call fcn.0050e6c7
add esp, 0xc
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push str._t_s_s_s_s_r_n
push edx
call fcn.0050e6c7
add esp, 0x18
lea eax, [esp + 0x60]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebx
call fcn.004bf670
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], 0x1c
call fcn.00512cfc
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4c19ed
mov eax, dword [esp + 0x2a0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4c1e55
lea ecx, [esp + 0x28]
call fcn.0051286f
push 0x5670
lea ecx, [esp + 0x14]
call fcn.00517fef
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
lea eax, [esp + 0x24]
push 0x567a
push eax
call fcn.00422640
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0xbc]
push eax
mov byte [esp + 0x29c], 0x1d
call fcn.0042d7a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
push 0
lea ecx, [esp + 0xc0]
call fcn.0042d910
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x4c1e55
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, ebx
call fcn.004c02a0
mov edi, eax
cmp edi, 1
jl 0x4c1e55
cmp byte [esp + 0x68], 1
je 0x4c1e55
lea ecx, [esp + 0xbc]
call fcn.0042da30
mov eax, dword [esp + 0x274]
test eax, eax
jne 0x4c20de
mov al, byte [esp + 0x68]
test al, al
jne 0x4c1cfb
cmp byte [esp + 0x69], 4
je 0x4c1d1c
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x60]
push ecx
push edx
mov ecx, ebx
call fcn.004c01d0
mov edi, eax
cmp edi, 1
jl 0x4c1e55
jmp 0x4c1e40
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.004c0150
mov edi, eax
cmp edi, 1
jl 0x4c1e55
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0xa4]
push ecx
push edx
call fcn.004222e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.004f9670
add esp, 0x14
test eax, eax
je 0x4c1db3
lea edx, [esp + 0x10]
lea ecx, [esp + 0x28]
push edx
call fcn.00512a1d
lea eax, [esp + 0x28]
lea ecx, [esp + 0x34]
push eax
call fcn.00512a1d
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
push ecx
push str._r_n_s_r_n
push edx
call fcn.0050e6c7
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, dword [eax - 8]
push 0
push edx
push ecx
push eax
push ebp
call esi
lea ecx, [esp + 0x2c]
call fcn.0051286f
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4c1ddd
push eax
lea eax, [esp + 0x30]
push str.___s_
push eax
call fcn.0050e6c7
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x18]
push str._t_s_s_r_n
push eax
call fcn.0050e6c7
add esp, 0x10
lea ecx, [esp + 0x60]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, ebx
call fcn.004bf670
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], 0x1e
call fcn.00512cfc
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4c1caa
mov eax, dword [esp + 0x2a0]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4c20d2
lea ecx, [esp + 0x28]
call fcn.0051286f
push 0x5671
lea ecx, [esp + 0x14]
call fcn.00517fef
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
lea eax, [esp + 0x24]
push pe_nt_image_headers32
push eax
call fcn.00422640
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0xbc]
push eax
mov byte [esp + 0x29c], 0x1f
call fcn.0042d7a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 0xd
call fcn.005128e4
push 0
lea ecx, [esp + 0xc0]
call fcn.0042d910
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x4c20d2
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, ebx
call fcn.004c02a0
mov edi, eax
cmp edi, 1
jl 0x4c20d7
cmp byte [esp + 0x68], 1
je 0x4c20d2
lea ecx, [esp + 0xbc]
call fcn.0042da30
mov eax, dword [esp + 0x274]
test eax, eax
jne 0x4c20de
mov al, byte [esp + 0x68]
test al, al
jne 0x4c1f58
mov al, byte [esp + 0x69]
cmp al, 1
je 0x4c1f79
cmp al, 0x10
je 0x4c1f79
cmp al, 2
je 0x4c1f79
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x60]
push ecx
push edx
mov ecx, ebx
call fcn.004c01d0
mov edi, eax
cmp edi, 1
jl 0x4c20d7
jmp 0x4c20bd
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.004c0150
mov edi, eax
cmp edi, 1
jl 0x4c20d7
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0xa4]
push ecx
push edx
call fcn.004222e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.004f9670
add esp, 0x14
test eax, eax
je 0x4c2010
lea edx, [esp + 0x10]
lea ecx, [esp + 0x28]
push edx
call fcn.00512a1d
lea eax, [esp + 0x28]
lea ecx, [esp + 0x34]
push eax
call fcn.00512a1d
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
push ecx
push str._r_n_s_r_n
push edx
call fcn.0050e6c7
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, dword [eax - 8]
push 0
push edx
push ecx
push eax
push ebp
call esi
lea ecx, [esp + 0x2c]
call fcn.0051286f
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4c203a
push eax
lea eax, [esp + 0x30]
push str.___s_
push eax
call fcn.0050e6c7
add esp, 0xc
cmp byte [esp + 0x69], 1
jne 0x4c205f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x18]
push str._t__s___s_r_n
push eax
call fcn.0050e6c7
add esp, 0x10
jmp 0x4c20aa
lea ecx, [esp + 0x30]
call fcn.0051286f
mov eax, dword [esp + 0x6c]
test al, 0x78
je 0x4c2089
shr eax, 3
and eax, 0xf
push eax
lea eax, [esp + 0x34]
push 0x5675
push eax
call fcn.0050e6da
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._t_s_s_s_r_n
push ecx
call fcn.0050e6c7
add esp, 0x14
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4c1efe
cmp edi, 1
jge 0x4c2105
push 0x5677
jmp 0x4c210a
push 0x4e5e
lea ecx, [esp + 0x40]
call fcn.00517fef
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push str._r_n_r_n_s_r_n
push ecx
call fcn.0050e6c7
add esp, 0xc
jmp 0x4c2113
push 0x5669
lea ecx, [esp + 0x14]
call fcn.00517fef
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebp
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
push fcn.005128e4
push 6
lea ecx, [esp + 0xa4]
push 4
push ecx
mov byte [esp + 0x2a8], 0xc
call fcn.004fa713
lea ecx, [esp + 0xbc]
mov byte [esp + 0x298], 0xb
call fcn.0042d3e0
lea ecx, [esp + 0x48]
mov byte [esp + 0x298], 0xa
call fcn.005128e4
lea ecx, [esp + 0x40]
mov byte [esp + 0x298], 9
call fcn.005128e4
lea ecx, [esp + 0x44]
mov byte [esp + 0x298], 8
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x298], 7
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x298], 6
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x298], 5
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x298], 4
call fcn.005128e4
lea ecx, [esp + 0x38]
mov byte [esp + 0x298], 3
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x298], 2
call fcn.005128e4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x298], 1
call fcn.005128e4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x298], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], 0xffffffff
call fcn.005128e4
mov eax, edi
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28c
ret 4