Function at 0x465940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x138
xor edx, edx
mov eax, dword [0x543b10]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
sub eax, edx
jl 0x465b8c
or eax, dword [ebp + 0xc]
je 0x465b8c
mov edi, dword [ebp + 0x14]
xor ecx, ecx
mov esi, dword [ebp + 0x18]
lea eax, [edi + esi]
mov dword [ebp - 0x144], eax
mov esi, ecx
shl esi, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + esi]
mov ebx, dword [ebx + esi + 8]
cmp edi, eax
ja 0x4659a0
cmp eax, dword [ebp - 0x144]
jb 0x465bac
cmp edi, eax
jb 0x4659aa
add eax, ebx
cmp edi, eax
jb 0x465bac
add ecx, 1
mov eax, ecx
adc edx, 0
sub eax, dword [ebp + 0xc]
mov ebx, edx
sbb ebx, dword [ebp + 0x10]
jb 0x46597d
mov ebx, dword [ebp + 0x1c]
xor edx, edx
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x124], edi
mov ecx, dword [ebp + 0xc]
xor eax, eax
add ecx, 0xffffffff
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x130], eax
mov eax, esi
mov dword [ebp - 0x128], ecx
mov edi, eax
mov ecx, dword [ebp + 0x10]
adc ecx, 0xffffffff
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x134], edx
mov edx, dword [ebp - 0x114]
shl edx, 4
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x118]
mov ecx, dword [esi + edx]
mov ebx, dword [edx + esi + 8]
mov edx, dword [edx + esi + 0xc]
xor esi, esi
sub eax, esi
jl 0x465b3a
or eax, edi
je 0x465b3a
mov esi, edi
sub esi, ebx
mov esi, dword [ebp - 0x118]
sbb esi, edx
jge 0x465a45
mov edx, dword [ebp - 0x118]
mov ebx, edi
mov eax, dword [ebp - 0x114]
mov esi, dword [ebp - 0x130]
sub eax, dword [ebp - 0x128]
sub esi, dword [ebp - 0x12c]
or eax, esi
jne 0x465ad4
mov eax, edi
sub eax, ebx
mov esi, dword [ebp - 0x118]
mov dword [ebp - 0x120], esi
sbb esi, edx
mov dword [ebp - 0x11c], edi
jl 0x465a7f
or eax, esi
jne 0x465aac
mov edx, 1
neg edx
add edx, edi
or edx, dword [ebp - 0x118]
jne 0x465a9d
movzx edx, byte [ecx]
mov ecx, dword [ebp - 0x124]
mov byte [ecx], dl
jmp 0x465af0
push edi
push ecx
push dword [ebp - 0x124]
call fcn.004d1b40
jmp 0x465aed
push ebx
push ecx
push dword [ebp - 0x124]
call fcn.004d1b40
mov edx, dword [ebp - 0x124]
lea ecx, [edx + ebx]
neg ebx
add ebx, edi
push ebx
push 0x20
push ecx
call fcn.004ca8b0
add esp, 0x18
jmp 0x465af0
push ebx
push ecx
push dword [ebp - 0x124]
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], edx
call fcn.004ca960
add esp, 0xc
mov edx, dword [ebp - 0x11c]
sub edi, edx
mov ecx, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x114]
sbb ecx, dword [ebp - 0x120]
add ebx, 1
mov esi, dword [ebp - 0x130]
mov dword [ebp - 0x114], ebx
adc esi, 0
add dword [ebp - 0x124], edx
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x118], ecx
sbb esi, dword [ebp + 0x10]
jl 0x465a00
mov edx, dword [ebp - 0x134]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
test edx, edx
je 0x465b8c
push esi
push dword [ebp - 0x144]
push edi
call fcn.004ca960
add esp, 0xc
mov eax, 0x100
xor edx, edx
sub esi, eax
sbb ebx, edx
jl 0x465b8c
or esi, ebx
je 0x465b8c
push dword [ebp - 0x144]
call fcn.00487660
add esp, 4
test eax, eax
je 0x465b8c
push 0
push 0x29
call fcn.00480060
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x465c2b
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov edx, 0x100
mov eax, esi
xor ecx, ecx
sub eax, edx
mov edx, ebx
mov dword [ebp - 0x13c], esi
sbb edx, ecx
mov dword [ebp - 0x138], ebx
jl 0x465bd3
or eax, edx
jne 0x465be1
lea eax, [ebp - 0x110]
mov dword [eax - 0x14], eax
mov dword [eax - 0x34], eax
jmp 0x465c21
lea eax, [ebp - 0x144]
push eax
push 0
push esi
call fcn.004875a0
add esp, 0xc
test eax, eax
je 0x465c11
push 0
push 0x29
call fcn.00480060
add esp, 8
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x124], eax
jmp 0x465c21
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x124], eax
test eax, eax
je 0x465bf7
mov edx, 1
jmp 0x4659ca
call fcn.004cf95b