Function at 0x482430
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53face
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov edx, dword [0x5c0834]
mov eax, dword [ebp + 0xc]
xor esi, esi
push esi
lea ecx, [ebp - 0x12c]
push ecx
push edi
push edx
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x12c], esi
call fcn.004c6aa0
mov ebx, eax
add esp, 0x10
cmp ebx, esi
jne 0x4824a6
mov eax, 1
jmp 0x482837
push 0x88
call fcn.00480850
add esp, 4
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x4824c9
mov ecx, eax
call fcn.0048f960
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
push ecx
lea edx, [ebx + 8]
push edx
lea eax, [ebp - 0x11c]
push eax
call fcn.0048f620
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x118], eax
test esi, esi
je 0x482509
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x48249c
mov eax, 0x5bfe78
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482515
sub eax, edx
mov ecx, eax
mov dword [ebp - 0x12c], ecx
mov eax, dword [ebx]
sub eax, ecx
mov ecx, dword [ebp - 0x11c]
push str.ocxdrv32.dll
sub eax, 0xa
push 0x5bfe78
push eax
push ecx
mov dword [ebp - 0x128], eax
call fcn.0047d5d0
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x114]
add esp, 0x10
sub edx, eax
jmp 0x482560
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x482560
cmp dword [ebp + 0x10], 0
je 0x482627
lea edx, [ebp - 0x114]
push edx
call fcn.004c4aa0
add esp, 4
test eax, eax
je 0x482627
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4825d7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4825d1
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 0x120]
lea edx, [ebp - 0x114]
push edx
xor esi, esi
call fcn.004c4aa0
add esp, 4
test eax, eax
je 0x482627
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
cmp esi, 0x64
jge 0x482621
mov eax, dword [ebp - 0x124]
inc esi
push esi
push eax
lea ecx, [ebp - 0x114]
push str._s._d
push ecx
call edi
lea edx, [ebp - 0x114]
push edx
call fcn.004c4aa0
add esp, 0x14
test eax, eax
jne 0x4825f2
mov edi, dword [ebp - 0x120]
cmp dword [0x5c1494], 0
mov esi, dword [ebp - 0x11c]
jne 0x482764
cmp edi, 0xb9
je 0x482764
cmp edi, 0x1396
je 0x482764
cmp edi, 0x1388
je 0x482764
cmp edi, 0x1391
je 0x482764
push esi
call fcn.004cbb80
add esp, 4
test eax, eax
je 0x482764
push esi
call fcn.004cba10
push esi
mov edi, eax
call fcn.004fedfc
add esp, 8
test edi, edi
je 0x48274d
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.004cd110
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4826ba
push edi
call fcn.004fedfc
add esp, 4
mov edi, esi
jmp 0x4826d3
cmp dword [0x5c1ac4], 0
jne 0x4826d3
push 0
push 0x54f6e0
push str.Rebase_failed
push 0
call ebx
push edi
call fcn.004cb8d0
lea eax, [ebp - 0x114]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4826e5
sub eax, edx
lea eax, [ebp + eax - 0x117]
push 0x56e828
push eax
call fcn.004ff027
add esp, 8
test eax, eax
jne 0x482710
push edi
call fcn.004cc120
add esp, 4
lea ecx, [ebp - 0x114]
push edi
push ecx
call fcn.004cbf90
add esp, 8
test eax, eax
je 0x482761
cmp dword [0x5c1ac4], 0
jne 0x48273d
push 0
push 0x54f6e0
push 0x56e900
push 0
call ebx
mov dword [ebp - 0x118], 1
push edi
jmp 0x4827d3
push 0
mov dword [ebp - 0x118], 1
call fcn.004c75f0
add esp, 4
push edi
jmp 0x4827d3
push 0
push 0
push 2
push 0
mov edi, 1
push edi
push 0x40000000
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
je 0x4827be
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x128]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebx]
je 0x4827b5
mov dword [ebp - 0x118], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4827cc
mov dword [ebp - 0x118], edi
call fcn.004c75f0
add esp, 4
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.004fedfc
lea edx, [ebp - 0x114]
add esp, 4
push edx
call fcn.0049d5c0
mov esi, dword [ebp - 0x124]
add esp, 4
mov ecx, esi
lea eax, [ebp - 0x114]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x482818
test dl, dl
je 0x482814
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x482818
add eax, 2
add ecx, 2
test dl, dl
jne 0x4827f8
xor eax, eax
jmp 0x48281d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x482831
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004cabd0
add esp, 8
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret