Function at 0x477490
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [0x5371a0]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x38]
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], edi
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x477585
mov eax, dword [ebp - 0x24]
mov edx, dword [0x537120]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x477526
mov esi, dword [0x5232bc]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x47752c
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff4
push edx
call fcn.0051c55a
add esp, 4
jmp 0x47752c
mov esi, dword [0x5232bc]
mov eax, dword [ebp - 0x28]
mov edx, dword [0x537120]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x477555
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x477555
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff4
push edx
call fcn.0051c55a
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [0x537120]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47757e
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x47757e
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff4
push edx
call fcn.0051c55a
add esp, 4
xor eax, eax
jmp 0x477e22
push eax
push eax
call dword [0x523394]
push eax
lea ecx, [ebp - 0x24]
call fcn.00439580
mov eax, dword [ebp - 0x38]
push eax
call dword [0x523630]
mov ecx, dword [0x5371a0]
mov edx, str.file:
test edx, edx
mov dword [ebp - 0x20], ecx
je 0x477606
mov eax, edx
shr eax, 0x10
jne 0x4775cb
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [ebp - 0x20]
push eax
call fcn.0041cec0
jmp 0x477606
push str.file:
call dword [0x523308]
mov esi, eax
cmp esi, edi
je 0x477606
push esi
lea ecx, [ebp - 0x20]
call fcn.00405010
cmp eax, edi
je 0x477606
mov edx, dword [ebp - 0x20]
inc esi
push esi
push str.file:
push edx
call fcn.0044f930
add esp, 0xc
lea ecx, [ebp - 0x20]
push 0xffffffffffffffff
call fcn.0041d0f0
lea eax, [ebp - 0x18]
push 5
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00478bc0
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
push ecx
push eax
call dword [0x523478]
mov ecx, dword [0x537120]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x18]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x47765e
mov edi, dword [0x5232bc]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x477664
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
push eax
call fcn.0051c55a
add esp, 4
jmp 0x477664
mov edi, dword [0x5232bc]
mov eax, dword [ebp - 0x20]
mov edx, dword [0x537120]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x477691
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x477691
mov edx, dword [ebp - 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.0051c55a
add esp, 4
test bl, bl
je 0x4776d4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
mov dword [ebp - 0x30], 1
je 0x477747
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4776be
mov edx, dword [0x537120]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4776c5
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x47772f
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00439580
jmp 0x477747
mov eax, str.WorldMail
test eax, eax
je 0x4776e8
push str.WorldMail
call dword [0x523394]
push str.WorldMail
push eax
lea ecx, [ebp - 0x14]
call fcn.00439580
mov edx, dword [0x5371a0]
mov eax, str.file:
test eax, eax
mov dword [ebp - 0x18], edx
je 0x47783f
mov ecx, eax
shr ecx, 0x10
jne 0x477804
xor eax, eax
mov edx, str.file:
mov ax, dx
lea ecx, [ebp - 0x18]
push eax
call fcn.0041cec0
jmp 0x47783f
lea ecx, [ebp - 0x14]
call fcn.00405210
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
add eax, 0xfffffff4
push eax
call dword [0x5232e8]
lea edx, [ebp - 0x18]
push 8
push edx
lea ecx, [ebp - 0x14]
call fcn.00476fb0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov byte [ebp - 4], 6
je 0x4777a5
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x477778
mov edx, dword [0x537120]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x47777f
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x47778e
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00439580
jmp 0x4777a5
lea ecx, [ebp - 0x14]
call fcn.00405210
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add eax, 0xfffffff4
push eax
call dword [0x5232e8]
mov eax, dword [ebp - 0x18]
mov edx, dword [0x537120]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4777d2
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4777d2
mov edx, dword [ebp - 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0051c55a
add esp, 4
lea ecx, [ebp - 0x14]
xor ebx, ebx
call fcn.0044f860
mov eax, dword [ebp - 0x14]
mov edi, dword [0x523a04]
mov ecx, dword [eax - 8]
lea esi, [eax + ecx*2]
cmp eax, esi
jae 0x4776f6
cmp word [eax], 0x2f
jne 0x4777ff
mov word [eax], 0x5c
inc ebx
push eax
call edi
jmp 0x4777eb
push str.file:
call dword [0x523308]
mov esi, eax
test esi, esi
je 0x47783f
push esi
lea ecx, [ebp - 0x18]
call fcn.00405010
test eax, eax
je 0x47783f
mov eax, dword [ebp - 0x18]
inc esi
push esi
push str.file:
push eax
call fcn.0044f930
add esp, 0xc
lea ecx, [ebp - 0x18]
push 0xffffffffffffffff
call fcn.0041d0f0
lea ecx, [ebp - 0x1c]
push 5
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00478bc0
mov edx, dword [ebp - 0x18]
mov eax, dword [eax]
mov edi, dword [0x523478]
push edx
push eax
mov byte [ebp - 4], 8
call edi
add esp, 8
test eax, eax
je 0x47795b
mov eax, dword [0x5371a0]
mov ecx, str.http:
test ecx, ecx
mov dword [ebp - 0x20], eax
je 0x4778d2
mov edx, ecx
shr edx, 0x10
jne 0x477897
xor eax, eax
mov ax, cx
lea ecx, [ebp - 0x20]
push eax
call fcn.0041cec0
jmp 0x4778d2
push str.http:
call dword [0x523308]
mov esi, eax
test esi, esi
je 0x4778d2
push esi
lea ecx, [ebp - 0x20]
call fcn.00405010
test eax, eax
je 0x4778d2
mov edx, dword [ebp - 0x20]
inc esi
push esi
push str.http:
push edx
call fcn.0044f930
add esp, 0xc
lea ecx, [ebp - 0x20]
push 0xffffffffffffffff
call fcn.0041d0f0
lea eax, [ebp - 0x2c]
push 5
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00478bc0
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
push ecx
push eax
call edi
mov ecx, dword [0x537120]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x2c]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x477926
mov edi, dword [0x5232bc]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x47792c
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff4
push eax
call fcn.0051c55a
add esp, 4
jmp 0x47792c
mov edi, dword [0x5232bc]
mov eax, dword [ebp - 0x20]
mov edx, dword [0x537120]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x477955
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x477955
mov edx, dword [ebp - 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.0051c55a
add esp, 4
test bl, bl
jne 0x477961
jmp 0x477963
mov edi, dword [0x5232bc]
mov bl, 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x537120]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47798c
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x47798c
mov edx, dword [ebp - 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.0051c55a
add esp, 4
mov eax, dword [ebp - 0x18]
mov edx, dword [0x537120]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4779b9
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4779b9
mov edx, dword [ebp - 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0051c55a
add esp, 4
test bl, bl
je 0x477b0f
mov eax, dword [0x5371a0]
mov ecx, 0x55fcb0
test ecx, ecx
mov dword [ebp - 0x18], eax
je 0x477a24
mov edx, ecx
shr edx, 0x10
jne 0x4779e9
xor eax, eax
mov ax, cx
lea ecx, [ebp - 0x18]
push eax
call fcn.0041cec0
jmp 0x477a24
push 0x55fcb0
call dword [0x523308]
mov esi, eax
test esi, esi
je 0x477a24
push esi
lea ecx, [ebp - 0x18]
call fcn.00405010
test eax, eax
je 0x477a24
mov edx, dword [ebp - 0x18]
inc esi
push esi
push 0x55fcb0
push edx
call fcn.0044f930
add esp, 0xc
lea ecx, [ebp - 0x18]
push 0xffffffffffffffff
call fcn.0041d0f0
lea eax, [ebp - 0x1c]
push 1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00478d10
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax]
push ecx
push eax
call dword [0x523478]
mov ecx, dword [0x537120]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x1c]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x477a74
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x477a74
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
push eax
call fcn.0051c55a
add esp, 4
mov eax, dword [ebp - 0x18]
mov edx, dword [0x537120]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x477aa1
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x477aa1
mov edx, dword [ebp - 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0051c55a
add esp, 4
test bl, bl
je 0x477ad2
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00478bc0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.004414f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004959b0
push 0x2f
lea ecx, [ebp - 0x14]
call fcn.00478f60
inc eax
lea edx, [ebp - 0x1c]
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.00476fb0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.004414f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004959b0
push 0x5f
push 0x3a
lea ecx, [ebp - 0x14]
call fcn.00478e80
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x28]
push eax
call fcn.004414f0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x477be4
push str..htm0
lea ecx, [ebp - 0x14]
call fcn.0044f590
push str..html
lea ecx, [ebp - 0x28]
call fcn.0044f590
lea ecx, [ebp - 0x244]
push ecx
push 0xff
call dword [0x523338]
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x1c]
push edx
call fcn.0043df00
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x2c]
mov bl, 0xd
push ecx
push edx
mov byte [ebp - 4], bl
call fcn.00441960
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.004414f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004959b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004959b0
lea eax, [ebp - 0x244]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0043df00
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x2c]
mov bl, 0xf
push edx
push eax
mov byte [ebp - 4], bl
call fcn.00441960
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.004414f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004959b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004959b0
push 0x2f
lea ecx, [ebp - 0x24]
call fcn.00478f60
inc eax
lea ecx, [ebp - 0x1c]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.00478bc0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x11
call fcn.004414f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004959b0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 3
test eax, eax
jne 0x477dd1
mov edx, dword [ebp - 0x14]
push edx
call dword [0x52362c]
mov esi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x2c], esi
mov ecx, dword [eax]
push edx
push eax
mov byte [ebp - 4], 0x13
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x477c92
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push 0x52b320
push eax
call dword [ecx]
test eax, eax
jl 0x477c92
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push 0x52b180
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x477c92
mov eax, dword [ebp - 0x3c]
push 0
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
jmp 0x477c92
mov dword [ebp - 4], 3
push esi
mov byte [ebp - 4], 0x15
call dword [0x523630]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x477cb1
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x477cbe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x477ccb
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x14]
mov edi, dword [0x5234ec]
push 0x5580f0
push eax
mov dword [ebp - 4], 3
call edi
mov ecx, dword [ebp - 0x28]
push 0x5580e4
push ecx
mov esi, eax
call edi
add esp, 0x10
mov edi, eax
test esi, esi
mov dword [ebp + 8], edi
je 0x477db9
test edi, edi
je 0x477daf
mov ebx, dword [0x523554]
push edi
push str._BASE_HREF_
call ebx
mov eax, dword [ebp - 0x24]
add esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
jne 0x477d2b
jmp 0x477d51
push eax
call dword [0x523394]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0051c5b0
mov edx, dword [ebp - 0x2c]
mov eax, esp
push 0
push edi
push edx
push eax
call fcn.00478b90
mov edi, dword [ebp + 8]
push edi
push eax
call ebx
push edi
push 0x55fc8c
call ebx
mov ebx, dword [0x523550]
push 2
push 0
push esi
call ebx
push esi
call dword [0x52354c]
push 0
push 0
push esi
mov edi, eax
call ebx
push edi
call dword [0x5234dc]
push esi
mov ebx, eax
push 1
push edi
push ebx
call dword [0x52351c]
mov eax, dword [ebp + 8]
add esp, 0x40
push eax
push 1
push edi
push ebx
call dword [0x5234e8]
push ebx
call dword [0x5234d8]
mov edi, dword [ebp + 8]
add esp, 0x14
push esi
call dword [0x5234e4]
add esp, 4
test edi, edi
je 0x477dc7
push edi
call dword [0x5234e4]
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x52332c]
mov edx, dword [ebp - 0x28]
mov byte [ebp - 4], 0x17
push edx
call fcn.00477370
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
add esp, 4
test eax, eax
jne 0x477df5
mov eax, dword [ebp - 0x28]
push eax
call dword [0x52332c]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.004959b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004959b0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004959b0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x250]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret