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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [esp + 0xa4]
test ebx, ebx
je 0x422275
mov eax, dword [ebx]
test eax, eax
je 0x422253
mov dword [esp], eax
call fcn.00447e10
mov dword [0x476164], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x422267
mov dword [esp], eax
call fcn.00447e10
mov dword [0x476168], eax
movzx eax, byte [ebx + 0xc]
mov byte [0x476170], al
mov dword [esp + 4], 0x10
mov dword [esp], 1
call fcn.00447ce0
mov dword [esp], 0
mov ebp, eax
call fcn.0040f340
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00447e10
mov dword [esp], 0x1c
mov ebx, eax
call fcn.00447900
mov edi, dword [ebp + 8]
mov dword [eax + 0x10], 0x476164
lea edx, [edi + 1]
mov dword [eax], ebx
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [eax + 0xc], 1
mov byte [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jle 0x4222f1
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 4]
test edx, edx
je 0x4222fb
mov dword [edx + 0x18], eax
mov ebx, dword [ebp]
mov dword [ebp + 4], eax
test ebx, ebx
je 0x422d40
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00447e10
mov dword [esp], eax
mov ebx, eax
call fcn.00426a00
mov eax, dword [esp + 0x44]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0042c600
mov dword [esp], ebx
call fcn.004376c0
mov eax, dword [0x476148]
mov dword [esp + 0x50], eax
test eax, eax
je 0x422385
mov dword [esp + 4], 0x463213
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
mov dword [esp + 0x50], eax
test eax, eax
je 0x422d70
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x87
mov dword [esp + 4], 1
mov dword [esp], str.REASON_tU_URL_tU_SCHEME_tU_HOST_tU_PORT_tU_PATH_tU_PARAMS_tU_QUERY_tU_FRAGMENT_tP_URL_tP_SCHEME_tP_HOST_tP_PORT_tP_PATH_tP_PARAMS_tP_QUERY_tP_FRAGMENT_n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0x40], 0x19
jmp 0x42245b
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x4223a9
cmp edx, 0x19
je 0x422cf8
test eax, eax
je 0x422e0f
mov dword [esp], edi
call fcn.004376c0
mov dword [esp], ebx
mov edi, dword [esp + 0x7c]
call fcn.00426d90
mov eax, dword [esp + 0x70]
test eax, eax
je 0x42243b
cmp byte [0x4760b8], 0
mov ebx, dword [esp + 0x70]
jne 0x4223e7
cmp byte [0x475f68], 0
je 0x422ad0
mov dword [esp], 0x4631c0
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp], 0
call fcn.0041d940
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call sub.cygwin1.dll_unlink
test eax, eax
jne 0x4227f0
mov dword [esp + 4], 0x46331e
mov dword [esp], 0
call fcn.0041d620
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00402910
mov dword [esp], edi
call fcn.004376c0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004376c0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.004376c0
mov eax, dword [0x476084]
mov edx, dword [0x476080]
mov dword [esp + 0x70], 0
mov esi, eax
or esi, edx
je 0x422486
cmp edx, dword [0x478388]
sbb eax, dword [0x47838c]
jl 0x422dff
cmp dword [esp + 0x40], 0x15
je 0x422dff
mov eax, dword [ebp]
test eax, eax
je 0x422b10
mov edx, dword [eax + 0x18]
mov dword [ebp], edx
test edx, edx
je 0x422718
mov edi, dword [eax + 0x10]
mov esi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edi
mov edi, dword [eax]
mov dword [esp + 0x38], esi
movzx esi, byte [eax + 0xc]
mov dword [esp + 0x3c], ecx
movzx ecx, byte [eax + 0x14]
mov dword [esp], eax
sub dword [ebp + 8], 1
mov byte [esp + 0x48], cl
call fcn.004376c0
mov eax, dword [0x473060]
test eax, eax
je 0x4224f6
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040ee40
test eax, eax
jne 0x422728
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 1
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [esp + 0x78]
mov dword [esp + 4], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], 0
call fcn.00427d40
mov ebx, eax
test eax, eax
je 0x4227a0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00424cf0
mov ecx, esi
mov dword [esp + 0x40], eax
mov edx, eax
mov eax, dword [esp + 0x7c]
test cl, cl
jne 0x422398
mov edx, dword [esp + 0x70]
test edx, edx
je 0x4223a9
cmp dword [esp + 0x40], 0x19
jne 0x4223a9
mov edx, dword [esp + 0x74]
test dl, 2
je 0x422648
shr edx, 6
and edx, 1
or dl, byte [esp + 0x48]
mov byte [esp + 0x4c], dl
je 0x422648
test eax, eax
jne 0x42265f
mov dword [esp], edi
call fcn.004376c0
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00447e10
mov dword [esp], ebx
mov edi, eax
call fcn.00426d90
mov edx, dword [0x475f40]
cmp edx, 0xffffffff
setne cl
cmp dword [esp + 0x3c], edx
setge al
and cl, al
mov byte [esp + 0x48], cl
je 0x422791
movzx eax, byte [esp + 0x48]
mov byte [esp + 0x4c], al
lea esi, [esi]
movzx ebx, byte [0x4760ba]
mov ecx, dword [esp + 0x70]
mov byte [esp + 0x48], bl
mov eax, ecx
test bl, bl
je 0x4223c9
mov esi, dword [esp + 0x3c]
cmp esi, edx
je 0x422c8d
add edx, 1
cmp edx, esi
jne 0x4223c9
jmp 0x422c8d
test eax, eax
je 0x422820
mov ecx, esi
test cl, cl
je 0x4223b1
mov byte [esp + 0x4c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00427d40
mov dword [esp + 4], 0x20
mov dword [esp], 1
mov dword [esp + 0x48], eax
call fcn.00447ce0
mov ecx, dword [esp + 0x3c]
mov edx, ebx
mov esi, eax
mov eax, dword [esp + 0x48]
mov dword [esi], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov eax, esi
call fcn.00421cc0
mov edx, eax
test eax, eax
je 0x422be0
lea eax, [eax - 7]
cmp eax, 1
jbe 0x422be0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], edx
mov dword [esp], eax
call fcn.00426d90
mov dword [esp], esi
call fcn.004376c0
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x34]
mov ecx, ebx
mov dword [esp], eax
mov eax, dword [esp + 0x50]
call fcn.004221b0
jmp 0x4223b1
mov dword [ebp + 4], 0
jmp 0x4224aa
mov eax, dword [0x473060]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040ed10
mov dword [esp], eax
call fcn.00447e10
cmp byte [esp + 0x48], 0
mov dword [esp + 0x70], eax
je 0x422a78
mov edx, dword [0x473058]
test edx, edx
je 0x422a78
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042c640
test eax, eax
je 0x422dde
mov edx, dword [0x475f40]
cmp dword [esp + 0x3c], edx
setge cl
cmp edx, 0xffffffff
setne al
and cl, al
mov byte [esp + 0x48], cl
jne 0x422603
mov byte [esp + 0x7c], 0
mov ecx, dword [esp + 0x70]
jmp 0x422c9d
mov eax, dword [esp + 0x78]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00426c80
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov ebx, eax
mov dword [esp + 4], 0x4632a0
mov dword [esp], 1
call fcn.0041d940
mov dword [esp], ebx
call fcn.004376c0
mov dword [esp], 0x12
call fcn.00430f70
mov eax, dword [esp + 0x70]
jmp 0x4223c9
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 4], str.unlink:__s_n
mov dword [esp + 8], eax
mov dword [esp], 1
call fcn.0041d940
jmp 0x42241b
mov dword [esp], edi
call fcn.004376c0
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00447e10
mov dword [esp], ebx
mov edi, eax
call fcn.00426d90
mov eax, esi
test al, al
je 0x422a6b
mov edx, dword [0x475f40]
cmp edx, 0xffffffff
setne al
cmp dword [esp + 0x3c], edx
setge cl
and al, cl
mov byte [esp + 0x48], al
jne 0x422ac0
mov byte [esp + 0x7c], 0
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x34]
mov dword [esp + 4], edi
mov dword [esp], ecx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
call fcn.00412cf0
mov dword [esp + 0x4c], eax
cmp byte [0x476070], 0
je 0x4228a2
cmp byte [esp + 0x7c], 0
jne 0x422cb8
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x422a6b
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00427d40
mov esi, eax
test eax, eax
je 0x42245b
mov ebx, dword [eax + 0x28]
test ebx, ebx
je 0x422d28
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.00427970
mov dword [esp + 0x6c], 1
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x68], edi
mov edi, esi
add eax, 1
mov dword [esp + 0x60], eax
jmp 0x4229ec
mov esi, dword [esp + 0x64]
movzx edx, byte [ebx + 9]
movzx eax, byte [ebx + 8]
mov dword [esp], esi
and edx, 1
shr al, 7
mov byte [esp + 0x5f], dl
mov byte [esp + 0x54], al
call fcn.00447e10
mov esi, eax
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00447e10
mov dword [esp], 0x1c
mov dword [esp + 0x58], eax
call fcn.00447900
mov ecx, dword [esp + 0x58]
movzx edx, byte [esp + 0x5f]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x60]
mov dword [eax], ecx
movzx ecx, byte [esp + 0x54]
mov dword [eax + 8], esi
mov esi, dword [ebp + 8]
mov byte [eax + 0x14], dl
lea edx, [esi + 1]
mov dword [eax + 0x10], 0x476164
mov byte [eax + 0xc], cl
mov dword [eax + 0x18], 0
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jle 0x42299f
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 4]
test edx, edx
je 0x4229a9
mov dword [edx + 0x18], eax
mov ecx, dword [ebp]
mov dword [ebp + 4], eax
test ecx, ecx
je 0x422bd0
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00447e10
mov dword [esp], eax
mov esi, eax
call fcn.00426a00
mov eax, dword [esp + 0x44]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0042c600
mov dword [esp], esi
call fcn.004376c0
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
je 0x422a45
movzx eax, byte [ebx + 8]
test al, 1
jne 0x4229e5
cmp byte [esp + 0x48], 0
je 0x4229ff
test al, 0x10
je 0x4229e5
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov eax, ebx
call fcn.00421cc0
mov edx, eax
test eax, eax
je 0x422920
mov dword [esp], edi
mov eax, dword [esp + 0x50]
mov ecx, dword [ebx]
call fcn.004221b0
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x4229ec
mov edx, dword [esp + 0x6c]
mov esi, edi
mov edi, dword [esp + 0x68]
test edx, edx
jne 0x422d10
mov dword [esp], esi
call fcn.00426d90
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00425c00
mov eax, dword [esp + 0x70]
jmp 0x4223c9
mov ecx, esi
test cl, cl
je 0x4223cd
mov edx, dword [0x47305c]
test edx, edx
je 0x4223cd
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042c640
test eax, eax
je 0x422a6b
mov edx, dword [0x475f40]
cmp dword [esp + 0x3c], edx
setge cl
cmp edx, 0xffffffff
setne al
and cl, al
mov byte [esp + 0x48], cl
je 0x422865
nop
mov byte [esp + 0x4c], 0
jmp 0x422610
mov dword [esp], eax
call fcn.0042c030
test al, al
jne 0x42243b
cmp byte [0x4760b8], 0
mov ebx, dword [esp + 0x70]
jne 0x4223e7
cmp byte [0x475f68], 0
jne 0x4223e7
mov dword [esp], str.Removing__s_since_it_should_be_rejected._n
call sub.cygintl_8.dll_libintl_gettext
jmp 0x4223f3
mov eax, dword [esp + 0x50]
test eax, eax
je 0x422da8
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.cygwin1.dll_fclose
jmp 0x422b51
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp], eax
sub dword [ebp + 8], 1
call fcn.004376c0
mov dword [esp], esi
call fcn.004376c0
mov dword [esp], ebx
call fcn.004376c0
mov eax, dword [ebp]
test eax, eax
je 0x422b70
mov edx, dword [eax + 0x18]
mov dword [ebp], edx
test edx, edx
jne 0x422b30
mov dword [ebp + 4], 0
jmp 0x422b30
mov dword [esp], ebp
call fcn.004376c0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0042c690
mov eax, dword [0x476084]
mov edx, dword [0x476080]
mov edi, eax
or edi, edx
je 0x422ba7
cmp edx, dword [0x478388]
sbb eax, dword [0x47838c]
jl 0x422d50
mov edi, dword [esp + 0x40]
mov eax, 0x19
cmp edi, 0x15
cmove eax, edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp], eax
jmp 0x4229b7
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00447e10
mov dword [esp], eax
mov dword [esp + 0x54], eax
call fcn.00426a00
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0042c600
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.004376c0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.00426d90
mov dword [esp], esi
call fcn.004376c0
mov dword [esp], edi
call fcn.00447e10
mov dword [esp], eax
mov esi, eax
call fcn.00426a00
mov eax, dword [esp + 0x44]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0042c600
mov dword [esp], esi
call fcn.004376c0
mov dword [esp], edi
call fcn.004376c0
mov dword [esp], ebx
mov edi, dword [esp + 0x7c]
call fcn.00426d90
mov edx, dword [0x475f40]
cmp edx, 0xffffffff
setne cl
cmp edx, dword [esp + 0x3c]
setle al
and cl, al
mov byte [esp + 0x48], cl
jne 0x422610
mov ecx, dword [esp + 0x70]
cmp byte [esp + 0x4c], 0
mov byte [esp + 0x7c], 0
je 0x42286e
mov dword [esp + 4], edi
mov dword [esp], ecx
call fcn.0040b370
mov dword [esp + 0x4c], eax
jmp 0x42288e
mov dword [esp], str.nofollow_attribute_found_in__s._Will_not_follow_any_links_on_this_page_n
mov ebx, dword [esp + 0x70]
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.0041d940
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00425c00
mov eax, dword [esp + 0x70]
jmp 0x4223c9
mov edx, dword [esp + 0x74]
mov ecx, edx
and ecx, 3
cmp ecx, 3
sete cl
mov esi, ecx
jmp 0x4225a3
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.004376c0
jmp 0x422a57
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], 0
jmp 0x4228ff
mov dword [ebp], eax
jmp 0x422309
mov dword [esp + 0x40], 0x2b
mov eax, dword [esp + 0x40]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 4], 0x463320
mov dword [esp + 0xc], eax
mov eax, dword [0x476148]
mov dword [esp], 1
mov dword [esp + 8], eax
call fcn.0041d940
jmp 0x422385
mov dword [esp], ebp
call fcn.004376c0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0042c690
mov eax, dword [0x476084]
mov edx, dword [0x476080]
mov edi, eax
or edi, edx
jne 0x422b95
mov dword [esp + 0x40], 0x19
jmp 0x422bba
mov ecx, esi
mov eax, dword [esp + 0x70]
test cl, cl
je 0x4223c9
mov edx, dword [0x47305c]
test edx, edx
jne 0x422a90
jmp 0x4223c9
cmp dword [esp + 0x50], 0
jne 0x422b1c
jmp 0x422b51
mov dword [esp], edi
call fcn.004376c0
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00447e10
mov dword [esp], ebx
mov edi, eax
call fcn.00426d90
jmp 0x422a6b