Function at 0x5625e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x130], 0
je 0x5630dc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], 0
je 0x562624
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 3
je 0x562624
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 4
je 0x562624
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], 5
je 0x562624
xor eax, eax
jmp 0x5630de
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x24]
xor edx, edx
div dword [ecx + 0x134]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
call fcn.00563110
add esp, 8
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 0x320
call fcn.0056a8f0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x320
call fcn.0056a0e0
push eax
lea ecx, [ebp - 8]
call fcn.0056b080
movzx ecx, al
test ecx, ecx
je 0x562698
lea ecx, [ebp - 8]
call fcn.0056b020
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x562883
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x2c]
test edx, edx
jne 0x562883
cmp dword [ebp - 0x10], 0
jne 0x562719
push 0x238
call fcn.005ace68
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5626d8
or eax, 0xffffffff
jmp 0x5630de
push 0x238
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.005a7100
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x228], 1
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 0x320
call fcn.00569f90
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
jmp 0x562778
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x210], 0
je 0x562778
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x130], 1
jne 0x562778
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x210]
push eax
call fcn.005ab232
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x210], 0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x214]
xor edx, edx
div dword [ecx + 0x134]
cmp eax, dword [ebp - 0x14]
jne 0x562778
mov edx, dword [ebp - 0x10]
add edx, 0x10
push edx
call fcn.00585c80
add esp, 4
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x21c], 0
je 0x562796
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x21c]
push edx
call fcn.005ab0f2
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2d]
sub ecx, 0x74
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x220], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x220]
push ecx
call fcn.005ace68
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x21c], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x21c], 0
jne 0x5627d7
or eax, 0xffffffff
jmp 0x5630de
push str.Got_asf_header._n
call fcn.005b18aa
add esp, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x220]
push edx
mov eax, dword [ebp + 8]
add eax, 0x69
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x21c]
push edx
call fcn.005a7f00
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x220]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x21c]
push eax
call fcn.00563230
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x234], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x234], 0
jbe 0x56287e
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x22c], 0
je 0x562863
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x22c]
push edx
call fcn.005ab0f2
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x230], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x234]
push edx
call fcn.005ace68
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x22c], eax
jmp 0x5630dc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 5
jne 0x5628a3
cmp dword [ebp - 0x10], 0
je 0x5628a3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x31]
mov dword [eax + 4], edx
jmp 0x5630dc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 3
je 0x5628b9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], 4
jne 0x5630dc
cmp dword [ebp - 0x10], 0
je 0x5630dc
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x24]
xor edx, edx
div dword [ecx + 0x134]
test edx, edx
jne 0x5628e9
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0x24]
cmp ecx, dword [eax + 0x214]
jne 0x562909
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x130], 2
jne 0x562c08
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x228], 1
jne 0x562c08
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], 3
jne 0x562b90
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x218]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x214]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.namesuffix_d__lastidx1_d__idx1_d__lastidx2_d__idx2_d_n
call fcn.005b18aa
add esp, 0x18
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x210], 0
je 0x56298d
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
push ecx
call fcn.005b1ad0
add esp, 8
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x210]
push eax
call fcn.005ab232
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x210], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x28], 0
je 0x5629b6
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x130], 2
jne 0x562b8e
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x228], 1
jne 0x562b8e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
imul eax, eax, 0x3c
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
call fcn.005630f0
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x224], 0
mov edx, dword [ebp - 0x48]
add edx, 0x138
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
call fcn.005b1ad0
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
add eax, 1
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
add edx, 0x76c
push edx
mov eax, dword [ebp - 0xc]
shr eax, 0xc
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push str._0000000000000000_08x_08x__d__04d_02d_02d_02d.wmv
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
call fcn.005a7ce0
add esp, 4
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x10]
push edx
call fcn.005acf32
add esp, 0x24
push 0x704a70
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
call fcn.005ab68c
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x210], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x210], 0
jne 0x562a86
mov eax, 0xfffffffe
jmp 0x5630de
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
push str.create_file_:__s_n
call fcn.005b18aa
add esp, 8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x210]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x220]
push ecx
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x21c]
push eax
call fcn.005ab8a9
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2d]
push edx
mov eax, dword [ebp + 8]
add eax, 0x31
push eax
call fcn.00563130
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x562b8e
mov ecx, dword [ebp + 8]
add ecx, 0x31
mov edx, dword [ebp - 0x18]
sub edx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2d]
sub ecx, edx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
xor edx, edx
div dword [ecx + 0x234]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x230], edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
xor edx, edx
div dword [ecx + 0x234]
test eax, eax
jbe 0x562b49
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x210]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ecx + 0x230]
push edx
push 1
mov eax, dword [ebp - 0x18]
push eax
call fcn.005ab8a9
add esp, 0x10
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x230], 0
jbe 0x562b81
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x230]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ecx + 0x230]
add edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x22c]
push ecx
call fcn.005a7f00
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x224], 1
jmp 0x562bf6
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x130], 1
jne 0x562bf6
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [edx + 8]
or ecx, dword [eax + 0xc]
je 0x562bf6
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
add eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
cmp eax, dword [edx + 0x35]
jne 0x562be5
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x50]
cmp edx, dword [ecx + 0x39]
je 0x562bf6
mov eax, dword [ebp - 0x10]
add eax, 0x110
push eax
call fcn.00585c80
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x228], 0
jmp 0x56309d
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 3
jne 0x56309d
cmp dword [ebp - 0x10], 0
je 0x56309d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x210], 0
je 0x56309d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x214]
cmp eax, dword [edx + 0x24]
je 0x562c54
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x214]
add edx, 1
mov eax, dword [ebp + 8]
cmp edx, dword [eax + 0x24]
jne 0x562c79
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x214]
cmp eax, dword [edx + 0x24]
jne 0x562cce
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x218]
add edx, 1
mov eax, dword [ebp + 8]
cmp edx, dword [eax + 0x28]
je 0x562cce
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x130], 1
jne 0x562cb5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x210]
push eax
call fcn.005ab232
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
push ecx
call fcn.00585c80
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x210], 0
jmp 0x562cce
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x130], 2
jne 0x562cce
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x224], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x210], 0
je 0x56309d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x224], 1
jne 0x562fd1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x230]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x2d]
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x234]
ja 0x562d9b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2d]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x31
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x22c]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x230]
push eax
call fcn.005a7f00
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x230]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x2d]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x230], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x230]
cmp edx, dword [ecx + 0x234]
jne 0x562d96
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x210]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x230]
push eax
push 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x22c]
push edx
call fcn.005ab8a9
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x230], 0
jmp 0x562fcc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2d]
push edx
mov eax, dword [ebp + 8]
add eax, 0x31
push eax
call fcn.00563130
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x562f59
mov ecx, dword [ebp + 8]
add ecx, 0x31
mov edx, dword [ebp - 0x30]
sub edx, ecx
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
add ecx, dword [eax + 0x230]
je 0x562e9c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + 0x230]
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx + 0x234]
je 0x562e9c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2d]
sub eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
xor edx, edx
div dword [ecx + 0x234]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x230], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x2d]
sub eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
xor edx, edx
div dword [ecx + 0x234]
test eax, eax
jbe 0x562e59
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x210]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2d]
sub edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
sub edx, dword [eax + 0x230]
push edx
push 1
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005ab8a9
add esp, 0x10
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x230], 0
jbe 0x562e97
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x230]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2d]
sub eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x230]
add eax, dword [ebp - 0x30]
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x22c]
push eax
call fcn.005a7f00
add esp, 0xc
jmp 0x562f57
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x230], 0
jbe 0x562ed0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x210]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x230]
push edx
push 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x22c]
push ecx
call fcn.005ab8a9
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2d]
sub eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
xor edx, edx
div dword [ecx + 0x234]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x230], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x210]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x2d]
sub edx, dword [ecx + 0x230]
push edx
push 1
mov eax, dword [ebp + 8]
add eax, 0x31
push eax
call fcn.005ab8a9
add esp, 0x10
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x230], 0
jbe 0x562f57
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x230]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2d]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x31]
mov edx, dword [ebp - 0x10]
sub ecx, dword [edx + 0x230]
push ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x22c]
push ecx
call fcn.005a7f00
add esp, 0xc
jmp 0x562fcc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x230]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x2d]
mov edx, dword [ebp - 0x10]
cmp eax, dword [edx + 0x234]
jne 0x562fbf
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x210]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x230]
push eax
push 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x22c]
push edx
call fcn.005ab8a9
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x210]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2d]
push eax
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x31
push ecx
call fcn.005ab8a9
add esp, 0x10
jmp 0x562fcc
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x224], 0
jmp 0x56309d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2d]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x31
push edx
call fcn.00563130
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x56309d
mov eax, dword [ebp + 8]
add eax, 0x31
mov ecx, dword [ebp - 0x38]
sub ecx, eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2d]
sub eax, ecx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x3c]
xor edx, edx
div dword [ecx + 0x234]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x230], edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x3c]
xor edx, edx
div dword [ecx + 0x234]
test eax, eax
jbe 0x563058
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x210]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
sub edx, dword [ecx + 0x230]
push edx
push 1
mov eax, dword [ebp - 0x38]
push eax
call fcn.005ab8a9
add esp, 0x10
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x230], 0
jbe 0x563090
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x230]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
sub edx, dword [ecx + 0x230]
add edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x22c]
push ecx
call fcn.005a7f00
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x224], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 4
jne 0x5630dc
cmp dword [ebp - 0x10], 0
je 0x5630dc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x35]
mov dword [ecx + 8], eax
mov edx, dword [edx + 0x39]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x214], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x218], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 4