Function at 0x417ad0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov ecx, dword [esp + 0xd4]
mov edi, dword [esp + 0xd0]
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x28], 0
movzx eax, byte [ecx]
test al, al
je 0x417b47
nop
cmp al, 0x25
je 0x417b73
mov ebx, ecx
jmp 0x417b0e
cmp al, 0x25
je 0x417b19
mov ebx, ebp
movzx eax, byte [ebx + 1]
lea ebp, [ebx + 1]
test al, al
jne 0x417b08
cmp ecx, ebp
je 0x417b3d
mov eax, ebp
sub eax, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ecx
call sub.msvcrt.dll_fwrite
movzx eax, byte [ebx + 1]
cmp al, 0x25
je 0x417b75
mov ecx, ebp
test al, al
jne 0x417b00
mov ecx, dword [esp + 0xdc]
test ecx, ecx
je 0x417b5c
mov edx, dword [0x514748]
test edx, edx
jne 0x417b8d
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4183b9
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, ecx
movsx ecx, byte [ebp + 1]
lea ebx, [ebp + 2]
lea eax, [ecx - 0x25]
cmp al, 0x51
ja case.0x417b86.1
movzx eax, al
jmp dword [eax*4 + 0x4d39f4]
mov dword [0x514724], 0
jmp 0x417b5c
movzx eax, byte [ebp + 2]
cmp al, 0x64
je 0x418321
cmp al, 0x75
je 0x418255
mov dword [esp + 8], ecx
mov dword [esp + 4], str.___c
mov dword [esp], edi
call sub.msvcrt.dll_fprintf
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov ecx, ebp
jmp 0x417b43
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 4], 0x4d3937
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
movzx ecx, byte [esp + 0x4c]
lea eax, [esp + 0x4c]
cmp cl, 0x30
jne 0x417c0b
lea esi, [esi]
add eax, 1
movzx ecx, byte [eax]
cmp cl, 0x30
je 0x417c00
cmp cl, 1
sbb eax, 0
jmp 0x418128
mov dword [esp + 4], edi
mov dword [esp], 0x25
call sub.msvcrt.dll_putc
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov ecx, ebp
jmp 0x417b43
lea edx, [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x30], edx
mov eax, dword [esi]
mov ecx, dword [esi + 0x94]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call sub.msvcrt.dll_fputs
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
test ecx, ecx
je 0x417c78
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
cmp eax, 5
je 0x418301
cmp eax, 2
je 0x4182a0
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov esi, edx
mov ecx, ebp
jmp 0x417b43
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
test eax, eax
je 0x41838a
mov ecx, dword [eax + 0x8c]
test ecx, ecx
je 0x418350
mov esi, dword [eax]
mov eax, dword [ecx]
mov dword [esp + 4], 0x4d395e
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_fprintf
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov esi, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x417b43
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x30], edx
lea edx, [esi + 0xc]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 8]
test eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edx
je 0x418153
mov dword [esp], eax
call fcn.004509a0
test eax, eax
je 0x418337
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
mov eax, dword [edx + 4]
mov esi, dword [edx + 0x78]
mov eax, dword [eax + 0x128]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], 0
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
call eax
test eax, eax
je 0x418153
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x41827e
movzx eax, byte [ebp + 1]
cmp al, 0x48
je 0x417d73
cmp al, 0x43
jne 0x41827e
mov esi, dword [0x50f448]
test esi, esi
je 0x417d9a
mov eax, dword [0x50f444]
test eax, eax
je 0x417d9a
mov edx, dword [0x50f440]
test edx, edx
je 0x417d9a
cmp dword [esp + 0x2c], esi
je 0x4183c5
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str._B:_In_function___T:_n
mov dword [esp], edi
mov dword [esp + 8], esi
call fcn.00417aa0
mov eax, dword [0x50f444]
mov dword [0x50f448], esi
test eax, eax
je 0x417dcd
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x44]
mov dword [0x50f444], 0
test eax, eax
je 0x417dec
mov dword [esp], eax
call fcn.004a06c0
mov dword [0x50f444], eax
mov eax, dword [0x50f440]
test eax, eax
je 0x417dfd
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x48]
xor esi, esi
mov dword [esp], eax
call fcn.004a06c0
mov dword [0x50f440], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x417e2c
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4d39c5
mov dword [esp], edi
call sub.msvcrt.dll_fprintf
movzx ecx, byte [ebp + 1]
xor eax, eax
cmp cl, 0x48
setne al
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x417e4d
cmp cl, 0x47
je 0x4183a0
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x418170
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x418170
mov edx, dword [esp + 0x2c]
mov eax, 0x4d3934
mov dword [esp + 8], ecx
mov dword [esp + 4], str._u_s
mov dword [esp], edi
test edx, edx
mov edx, 0x4d3935
cmove eax, edx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x418190
jmp 0x418170
call fcn.0044b8a0
mov dword [esp], eax
call fcn.0044b8b0
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_fputs
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov ecx, ebp
jmp 0x417b43
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov dword [esp + 0x28], 1
mov ecx, ebp
jmp 0x417b43
lea eax, [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x417f08
mov eax, dword [eax]
mov dword [esp + 4], 0x4d3965
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esi + 0xc]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_fputs
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x8c]
test eax, eax
jne 0x417cc2
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004a8b70
test eax, eax
je 0x417cc2
mov eax, dword [esi + 8]
mov dword [esp + 4], 0x4d396a
mov dword [esp + 8], eax
jmp 0x41804a
mov eax, dword [0x51478c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_fputs
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov ecx, ebp
jmp 0x417b43
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov esi, dword [ecx + 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str._s0x_v__type__s_
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00417aa0
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov esi, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x417b43
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
test eax, eax
je 0x41836f
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x417cc2
mov eax, dword [eax + 4]
mov dword [esp + 8], ecx
mov dword [esp + 4], str._s:_u
mov dword [esp + 0xc], eax
jmp 0x417cba
lea eax, [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x2c], eax
test esi, esi
je 0x418004
cmp byte [esi], 0
jne 0x4181e5
mov dword [esp + 0xc], edi
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.no_symbol
call sub.msvcrt.dll_fwrite
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov esi, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x417b43
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 4], 0x4d3937
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_fprintf
jmp 0x417cc2
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
lea esi, [esp + 0x4c]
mov dword [esp + 4], 0x4d3937
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
movzx eax, byte [esp + 0x4c]
cmp al, 0x30
jne 0x41808f
add esi, 1
movzx eax, byte [esi]
cmp al, 0x30
je 0x418085
cmp al, 1
sbb esi, 0
mov dword [esp], esi
call sub.msvcrt.dll_strlen
cmp eax, 7
jg 0x4180c3
mov dword [esp + 0x30], ebx
mov ebx, eax
mov dword [esp + 4], edi
add ebx, 1
mov dword [esp], 0x20
call sub.msvcrt.dll_putc
cmp ebx, 8
jne 0x4180a7
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], esi
mov dword [esp + 4], str.0x_s
jmp 0x41804a
mov dword [0x514724], 0
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov ecx, ebp
jmp 0x417b43
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 4], 0x4d39de
mov dword [esp + 8], eax
jmp 0x41804a
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 4], 0x4d39db
mov dword [esp + 8], eax
jmp 0x41804a
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_fputs
jmp 0x417cc2
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 4], 0x4d39e1
mov dword [esp + 8], eax
jmp 0x41804a
mov eax, dword [esp + 0x2c]
mov esi, 1
mov dword [esp + 4], 0x4d39c1
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00417aa0
mov eax, dword [esp + 0x34]
mov dword [esp + 4], str.__A0x_v_
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.00417aa0
test esi, esi
je 0x4181d4
mov eax, dword [0x50f444]
mov dword [0x50f448], 0
test eax, eax
je 0x4181b9
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [0x50f444], 0
mov eax, dword [0x50f440]
test eax, eax
je 0x4181d4
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [0x50f440], 0
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov esi, dword [esp + 0x38]
mov ecx, ebp
jmp 0x417b43
mov eax, dword [0x514794]
test eax, eax
je 0x418238
mov eax, dword [0x514850]
mov dword [esp + 8], 3
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044c5f0
test eax, eax
je 0x418238
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x30], eax
call sub.msvcrt.dll_fputs
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call sub.msvcrt.dll_free
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov esi, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x417b43
mov dword [esp], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll_fputs
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov esi, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x417b43
mov eax, dword [esi]
lea ebx, [esi + 4]
mov dword [esp + 4], 0x4d39e8
mov dword [esp + 8], eax
mov dword [esp], edi
add ebp, 3
mov esi, ebx
call sub.msvcrt.dll_fprintf
movzx eax, byte [ebp]
mov ecx, ebp
jmp 0x417b43
mov eax, dword [esp + 0x2c]
mov esi, 1
mov dword [esp + 4], 0x4d39c1
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00417aa0
jmp 0x417e10
mov eax, dword [esi + 0x94]
mov eax, dword [eax + 4]
cmp dword [eax + 4], 2
jne 0x417c78
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x417c78
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x417c78
mov eax, dword [eax]
test eax, eax
je 0x417c78
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4d394c
mov dword [esp], edi
mov dword [esp + 0x2c], edx
call sub.msvcrt.dll_fprintf
mov edx, dword [esp + 0x2c]
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov ecx, ebp
mov esi, edx
jmp 0x417b43
mov eax, dword [esi + 0x8c]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x417c78
test byte [esi + 0x17], 2
jne 0x417c78
mov eax, dword [eax + 0x74]
jmp 0x4182ce
mov eax, dword [esi]
lea ebx, [esi + 4]
mov dword [esp + 4], 0x4d39e4
mov dword [esp + 8], eax
jmp 0x418266
mov eax, dword [esp + 0x2c]
mov dword [esp], 0x4d3988
mov dword [esp + 4], eax
call fcn.00418450
jmp 0x417d06
mov eax, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_fputs
movzx eax, byte [ebp + 2]
mov ebp, ebx
mov esi, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x417b43
call fcn.00405e40
mov dword [esp + 0x54], eax
mov eax, dword [0x4be008]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
jmp 0x417fcb
mov eax, dword [0x51478c]
mov dword [esp + 4], str._s_generated
mov dword [esp + 8], eax
jmp 0x41804a
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4d39c9
mov dword [esp], edi
call fcn.00417aa0
jmp 0x417e90
mov dword [esp], 1
call fcn.004a7250
mov esi, dword [esp + 0x44]
test esi, esi
je 0x41840d
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004a8b70
mov ecx, dword [esp + 0x48]
test eax, eax
jne 0x417d9a
mov eax, dword [0x50f440]
mov dword [esp + 4], ecx
xor esi, esi
mov dword [esp], eax
mov dword [esp + 0x3c], ecx
call sub.msvcrt.dll_strcmp
mov ecx, dword [esp + 0x3c]
test eax, eax
je 0x417e10
jmp 0x417d9a
mov eax, edx
nop
jmp 0x4183ea