Function at 0x4080d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x438e28]
xor eax, esp
mov dword [esp + 0x14c], eax
xor eax, eax
push esi
mov dword [0x44d230], eax
mov dword [0x43d124], eax
mov eax, dword [ebx + 8]
push edi
push eax
call fcn.0040bd30
mov edx, dword [ebx]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
cmp eax, 0xffffffff
je 0x40817d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebx + 0x19], 0
je 0x40817d
mov eax, dword [0x44d46c]
push 0x104
push 0x43d230
push 0x76
push eax
call esi
cmp dword [0x44d460], 0
jne 0x40817d
mov ecx, dword [ebx + 0x38]
push 0x34
push 0x433250
push 0x43d230
push ecx
call edi
cmp eax, 7
jne 0x40817d
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.004181f3
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
push 0
push 0x8000000
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x43d228], eax
cmp eax, 0xffffffff
jne 0x4081e1
mov eax, dword [0x44d46c]
push 0x104
push 0x43d230
push 0x70
push eax
call esi
mov ecx, dword [ebx + 0x38]
push 0x10
push 0x433250
push 0x43d230
push ecx
call edi
mov eax, 2
pop edi
pop esi
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.004181f3
mov esp, ebp
pop ebp
ret
push 1
call fcn.0041835e
add esp, 4
mov dword [0x43d120], eax
test eax, eax
jne 0x408244
mov edx, dword [0x44d46c]
push 0x104
push 0x43d230
push 0x81
push edx
call esi
mov eax, dword [ebx + 0x38]
push 0x10
push 0x433250
push 0x43d230
push eax
call edi
mov ecx, dword [0x43d228]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.004181f3
mov esp, ebp
pop ebp
ret
mov dword [0x43d22c], 0
cmp byte [ebx + 0x21], 0
je 0x408679
push ebx
mov eax, str._HTML_
call fcn.0040bcb0
add esp, 4
push ebx
mov eax, str._HEAD_
call fcn.0040bcb0
add esp, 4
cmp byte [0x43bca1], 0
je 0x408308
mov eax, dword [0x434528]
mov edx, dword [str._TITLE_]
mov dword [0x43d234], eax
mov dword [0x43d230], edx
cmp byte [ebx + 0x21], 0
mov eax, 0x43bca1
jne 0x4082cd
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4082a4
mov edi, 0x43d230
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4082b5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4082d2
call fcn.0040c410
mov eax, 0x43d230
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4082d8
mov ecx, dword [str.__TITLE_]
mov edx, dword [0x434530]
mov dword [eax], ecx
mov cl, byte [0x434534]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
push ebx
mov eax, 0x43d230
call fcn.0040bcb0
add esp, 4
push ebx
mov eax, str.__HEAD_
call fcn.0040bcb0
mov edx, dword [str._BODY]
mov ax, word [0x434544]
add esp, 4
cmp byte [0x43bc70], 0
mov dword [0x43d230], edx
mov word [0x43d234], ax
je 0x40836e
mov eax, 0x43d230
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408340
mov ecx, dword [str._BGCOLOR]
mov edx, dword [0x43454c]
mov dword [eax], ecx
mov cx, word [0x434550]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, dword [0x43bc74]
call fcn.0040c310
cmp byte [0x43bc88], 0
je 0x4083ae
mov eax, 0x43d230
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408380
mov edx, dword [str._TEXT]
mov cx, word [0x434558]
mov dword [eax], edx
mov dl, byte [0x43455a]
mov word [eax + 4], cx
mov byte [eax + 6], dl
mov eax, dword [0x43bc8c]
call fcn.0040c310
cmp byte [0x43bc91], 0
je 0x408443
mov eax, 0x43d230
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4083c1
mov ecx, dword [str._LINK]
mov dx, word [0x434560]
mov dword [eax], ecx
mov cl, byte [0x434562]
mov word [eax + 4], dx
mov byte [eax + 6], cl
mov eax, dword [0x43bc94]
call fcn.0040c310
mov eax, 0x43d230
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4083f5
mov edx, dword [str._VLINK]
mov ecx, dword [0x434568]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, dword [0x43bc94]
call fcn.0040c310
mov eax, 0x43d230
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408420
mov edx, dword [str._ALINK]
mov ecx, dword [0x434570]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, dword [0x43bc94]
call fcn.0040c310
mov edi, 0x43d230
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408450
mov dx, word [0x434574]
push ebx
mov eax, 0x43d230
mov word [edi], dx
call fcn.0040bcb0
add esp, 4
cmp byte [0x43bca1], 0
je 0x4084fd
mov eax, dword [str._H1_]
mov cl, byte [0x43457c]
mov dword [0x43d230], eax
mov byte [0x43d234], cl
cmp byte [ebx + 0x21], 0
mov eax, 0x43bca1
jne 0x4084c9
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4084a0
mov edi, 0x43d230
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4084b1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4084ce
call fcn.0040c410
mov eax, 0x43d230
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4084d4
mov edx, dword [str.__H1_]
mov cx, word [0x434584]
mov dword [eax], edx
mov word [eax + 4], cx
push ebx
mov eax, 0x43d230
call fcn.0040bcb0
add esp, 4
cmp byte [0x43bca0], 0
mov eax, dword [0x43458c]
mov edx, dword [str._TABLE_BORDER]
mov ecx, dword [0x434590]
mov dword [0x43d234], eax
mov al, byte [0x434596]
mov dword [0x43d230], edx
mov dx, word [0x434594]
mov byte [0x43d23e], al
mov dword [0x43d238], ecx
mov word [0x43d23c], dx
mov eax, 0x434598
jne 0x40854a
mov eax, 0x43459c
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408550
mov edi, 0x43d230
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408561
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp byte [0x43bc98], 0
rep movsb byte es:[edi], byte [esi]
je 0x4085bd
mov eax, 0x43d230
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408586
mov ecx, dword [str._BORDERCOLOR]
mov edx, dword [0x4345a4]
mov dword [eax], ecx
mov ecx, dword [0x4345a8]
mov dword [eax + 4], edx
mov dx, word [0x4345ac]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov eax, dword [0x43bc9c]
call fcn.0040c310
cmp byte [0x43bca0], 0
je 0x408638
mov eax, 0x43d230
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4085d0
mov ecx, dword [str._BGCOLOR]
mov edx, dword [0x43454c]
mov dword [eax], ecx
mov cx, word [0x434550]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, dword [0x43bc9c]
call fcn.0040c310
mov eax, 0x43d230
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408604
mov edx, dword [str._CELLSPACING_1_]
mov ecx, dword [0x4345b4]
mov dword [eax], edx
mov edx, dword [0x4345b8]
mov dword [eax + 4], ecx
mov ecx, dword [0x4345bc]
mov dword [eax + 8], edx
mov dl, byte [0x4345c0]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], dl
mov edi, 0x43d230
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408640
mov ax, word [0x434574]
mov word [edi], ax
push ebx
mov eax, 0x43d230
call fcn.0040bcb0
add esp, 4
push ebx
mov eax, str._TBODY_
call fcn.0040bcb0
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 4
mov eax, dword [ebx + 4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408680
mov ecx, dword [0x44d46c]
push 0x20
push 0x44d234
push 0x7a
sub eax, edx
push ecx
mov dword [0x43cf10], eax
call esi
mov edx, dword [ebx + 4]
push 0x44d230
push 0x43d124
push 0x43d22c
push 0x43d120
push 0
push edx
push ebx
call fcn.0040b400
add esp, 0x1c
cmp eax, 2
jg 0x408761
cmp byte [ebx + 0x21], 0
je 0x40870a
push ebx
mov eax, str.__TBODY_
call fcn.0040bcb0
add esp, 4
push ebx
mov eax, str.__TABLE_
call fcn.0040bcb0
add esp, 4
push ebx
mov eax, str.__BODY_
call fcn.0040bcb0
add esp, 4
push ebx
mov eax, str.__HTML_
call fcn.0040bcb0
add esp, 4
mov eax, dword [0x43d22c]
mov ecx, dword [0x43d120]
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [0x43d228]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
cmp eax, dword [0x43d22c]
je 0x408795
mov ecx, dword [0x44d46c]
push 0x104
push 0x43d230
push 0x82
push ecx
call esi
mov edx, dword [ebx + 0x38]
push 0x30
push 0x433250
push 0x43d230
push edx
call edi
mov eax, dword [0x43d228]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x43d120]
push ecx
call fcn.00418524
add esp, 4
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.004181f3
mov esp, ebp
pop ebp
ret
mov edx, dword [0x43d228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x43d120]
push eax
call fcn.00418524
mov ecx, dword [esp + 0x158]
add esp, 4
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004181f3
mov esp, ebp
pop ebp
ret