Function at 0x551a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x148], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x150], eax
mov edx, dword [eax + 4]
sub edx, dword [eax]
mov eax, 0x2aaaaaab
imul edx
sar edx, 4
mov ecx, dword [ebp + 0xc]
mov eax, edx
mov dword [ebp - 0x134], ecx
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 8]
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x154], eax
mov esi, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x120], 0
add ecx, edx
je 0x551e4c
push edi
xor edi, edi
mov dword [ebp - 0x12c], edi
xor eax, eax
lea esp, [esp]
test esi, esi
jle 0x551e37
sub ecx, eax
mov eax, esi
cdq
idiv ecx
mov ecx, dword [ebx + 8]
add ecx, edi
mov byte [ebp - 0x119], 0
cmp dword [ecx + 0x14], 0x10
mov esi, eax
mov dword [ebp - 0x144], esi
jb 0x551afb
mov ecx, dword [ecx]
lea eax, [ebp - 0xc4]
push eax
push ecx
call fcn.00401830
movzx ecx, byte [ebp - 0x119]
add esp, 8
test eax, eax
mov eax, 1
cmove ecx, eax
lea esi, [esi + esi*2]
shl esi, 5
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x138], esi
test esi, esi
jle 0x551cf3
push eax
push esi
call fcn.005882d3
push 1
push esi
mov dword [ebp - 0x124], eax
call fcn.005882d3
add esp, 0x10
cmp dword [ebp - 0x124], 0
mov dword [ebp - 0x13c], eax
je 0x551ce7
test eax, eax
je 0x551cd3
mov edi, eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x140], edi
test eax, eax
jle 0x551bd9
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x130], eax
lea ebx, [ecx + ecx*2]
shl ebx, 5
lea ecx, [ecx]
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
add ecx, ebx
call fcn.00547fe0
mov ecx, 0x18
lea esi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x140]
add edi, 0x60
add ebx, 0x60
dec dword [ebp - 0x130]
mov dword [ebp - 0x140], edi
jne 0x551b90
mov ebx, dword [ebp - 0x148]
mov esi, dword [ebp - 0x138]
lea eax, [ebp - 0x118]
push eax
call fcn.00410f30
mov edi, dword [ebp - 0x13c]
push esi
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.00410f60
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00411060
mov ecx, dword [ebp - 0x134]
add esp, 0x18
call fcn.004070b0
mov ecx, dword [ebp - 0x134]
push esi
push dword [ebp - 0x124]
push edi
call fcn.00407110
mov ecx, dword [ebp - 0x134]
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00407110
mov eax, dword [ebx + 8]
mov edi, dword [ebp - 0x12c]
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x551c52
mov eax, dword [eax]
push eax
call fcn.0054f990
mov eax, dword [ebx + 8]
add eax, edi
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x551c68
mov eax, dword [eax]
push 0x5e1cec
push eax
call fcn.004017f0
mov esi, eax
add esp, 8
test esi, esi
je 0x551cbd
push esi
push dword [ebp - 0x138]
push 1
push dword [ebp - 0x124]
call fcn.0058a2cd
push esi
push 0x10
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.0058a2cd
push esi
call fcn.005890ae
mov eax, dword [ebx + 8]
add eax, edi
add esp, 0x24
cmp dword [eax + 0x14], 0x10
jb 0x551cb4
mov eax, dword [eax]
push eax
call fcn.0054fd10
add esp, 4
mov eax, dword [ebx + 8]
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x551cca
mov eax, dword [eax]
push eax
call fcn.0054fa10
add esp, 4
push dword [ebp - 0x124]
call fcn.005864b7
mov eax, dword [ebp - 0x13c]
add esp, 4
test eax, eax
je 0x551d35
push eax
call fcn.005864b7
jmp 0x551d32
mov eax, dword [ebx + 8]
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x551d00
mov eax, dword [eax]
push eax
call fcn.004018d0
add esp, 4
test eax, eax
je 0x551d35
mov eax, dword [ebx + 8]
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x551d1a
mov eax, dword [eax]
push 0x5e1cec
push eax
call fcn.004017f0
add esp, 8
test eax, eax
je 0x551d35
push eax
call fcn.005890ae
add esp, 4
cmp byte [ebx + 0x20], 0
je 0x551dab
cmp byte [ebp - 0x14c], 0
je 0x551dab
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 8]
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x551d81
mov eax, dword [eax]
lea ecx, [ebp - 0x94]
push ecx
push eax
call fcn.00401860
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x120]
add esp, 8
mov dword [ecx + edx*8], eax
mov eax, dword [ebp - 0xa0]
jmp 0x551de4
mov eax, dword [ebx + 8]
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x551db8
mov eax, dword [eax]
lea ecx, [ebp - 0xf4]
push ecx
push eax
call fcn.00401830
mov edx, dword [ebp - 0x120]
add esp, 8
test eax, eax
jne 0x551de8
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 0xd4]
mov dword [ecx + edx*8], eax
mov eax, dword [ebp - 0xd0]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [ebp - 0x128]
add eax, dword [ebp - 0x144]
mov esi, dword [ebp - 0x154]
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 8]
sub esi, eax
inc edx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], edx
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [ebp - 0x120]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edi, 0x18
add ecx, edx
mov dword [ebp - 0x12c], edi
cmp eax, ecx
jb 0x551ad0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8