Function at 0x4246d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4921c0]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp dword [0x4933a8], 0
mov eax, dword [esp + 0x12c]
push ebx
push ebp
mov ebp, dword [esp + 0x12c]
push esi
mov esi, dword [esp + 0x134]
push edi
mov edi, ecx
mov ebx, edx
mov dword [esp + 0x24], ebp
je 0x4247d9
push 0x47c5c8
push eax
call fcn.00408b67
add esp, 8
cmp dword [0x58ca58], 0
mov dword [0x54990c], eax
je 0x42472f
inc esi
cmp dword [0x58ca5c], 0
je 0x42473b
add esi, 2
push 0
push esi
push eax
call fcn.0040a33f
add esp, 0xc
push edi
push 2
call dword [0x4780a0]
mov esi, eax
cmp esi, 0xffffffff
je 0x424762
push esi
call dword [0x478098]
test eax, eax
jne 0x42477d
test esi, esi
je 0x42476d
push esi
call dword [0x4780c0]
mov eax, dword [0x54990c]
push eax
call fcn.00408fa4
add esp, 4
jmp 0x4247d9
mov ecx, dword [0x54990c]
push ecx
push edi
push 1
push eax
call fcn.00408e1e
add esp, 0x10
push esi
call dword [0x4780a4]
mov edx, dword [0x54990c]
push edx
call fcn.00408fa4
add esp, 4
lea eax, [esp + 0x1c]
push eax
push 1
push esi
call dword [0x4783e8]
test eax, eax
jl 0x4247d9
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0x47855c
push 0
push 0
push edx
call dword [0x478278]
test eax, eax
jge 0x42487d
push 0x497218
lea eax, [esp + 0x2c]
push str._sdm.jpg
push eax
mov dword [0x4933a8], 0
call fcn.00408143
add esp, 0xc
lea ecx, [esp + 0x28]
push 0x47c5d8
push ecx
call fcn.00408b67
add esp, 8
mov dword [0x549908], eax
test ebx, ebx
jbe 0x424844
mov esi, ebx
jmp 0x424820
mov edx, dword [0x54990c]
push edx
call fcn.00408669
mov ecx, dword [0x549908]
add esp, 4
push ecx
push eax
call fcn.0040af6c
add esp, 8
sub esi, 1
jne 0x424820
mov edx, dword [0x54990c]
push edx
call fcn.00408fa4
mov eax, dword [0x549908]
add esp, 4
push eax
call fcn.00408fa4
add esp, 4
push ebp
lea eax, [esp + 0x2c]
call fcn.004243a0
lea ecx, [esp + 0x28]
push ecx
call fcn.0040876d
add esp, 4
jmp 0x42493a
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [0x495010]
mov edi, dword [0x478068]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push 0x58
push ecx
call edi
mov edx, dword [0x495010]
push 0x5a
push edx
mov ebp, eax
call edi
push 0x9ec
push ebp
push esi
mov esi, dword [0x4780ac]
mov dword [esp + 0x2c], eax
call esi
mov edi, eax
mov eax, dword [esp + 0x20]
push 0x9ec
push eax
push ebx
call esi
mov ebx, dword [esp + 0x24]
mov esi, eax
push esi
push edi
mov eax, ebx
call fcn.004023f0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push edx
mov edx, dword [esp + 0x1c]
push edx
push 0
push 0
mov edx, esi
neg edx
push edx
mov edx, dword [ebx + 0x218]
push edi
push esi
push 0
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407ed0
add esp, 0x120
ret 0xc