Function at 0x65a91c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1e
push 0
push 0
dec ecx
jne 0x65a925
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
call fcn.005891d8
mov edi, dword [0x6824bc]
xor eax, eax
push ebp
push 0x65b51d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.0065a8d0
mov ebx, dword [ebp - 0xc]
shl ebx, 3
lea ebx, [ebx + ebx*8]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x118]
lea eax, [eax + ebx*8 + 0x40]
push eax
push pe_nt_image_headers32
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x1c]
mov ecx, 4
call fcn.005c6240
mov eax, dword [ebp + 8]
add dword [eax], 4
mov eax, dword [ebp - 0x1c]
call fcn.00586a80
mov esi, eax
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0065a8d0
mov edx, dword [ebp + 0x10]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x118]
lea edx, [edx + ebx*8 + 0x40]
push edx
push pe_nt_image_headers32
mov eax, esi
mov edx, eax
mov ecx, dword [ebp - 0x1c]
call fcn.005c618c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
add dword [eax], edx
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
add esi, 4
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
add esi, 4
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
add esi, 4
lea eax, [ebp - 0x34]
mov edx, esi
call fcn.00588d20
mov eax, dword [ebp - 0x34]
call fcn.00588e28
add eax, eax
add eax, 2
add esi, eax
mov al, byte [esi]
mov byte [ebp - 0x39], al
inc esi
cmp dword [ebp - 0x2c], 1
jne 0x65acc4
cmp byte [ebp - 0x39], 3
jne 0x65acc4
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
mov edx, dword [edi]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x58]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
mov edx, dword [edi + 0x10]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x2c]
mov edx, dword [edi + 0x14]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x64]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
mov edx, dword [edi + 0x18]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x68]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x30]
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x34]
mov edx, dword [edi + 0x20]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x70]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x38]
mov edx, dword [edi + 0x24]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
mov edx, dword [edi + 0x28]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x78]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x40]
mov edx, dword [edi + 0x2c]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edi + 0x30]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x80]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
mov edx, dword [edi + 0x34]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov al, byte [0x65b530]
push eax
push 0
lea eax, [ebp - 0x84]
push eax
mov eax, dword [0x682514]
mov eax, dword [eax]
mov ecx, dword [eax + 0x44]
mov edx, dword [edi + 0x38]
mov eax, dword [ebp - 0x34]
call fcn.005d517c
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x34]
call fcn.00588c28
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.00588c28
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0x34]
call fcn.0058d288
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x34]
call fcn.00588c28
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
lea ebx, [eax + 8]
cmp dword [ebp - 8], 0
je 0x65b330
xor ebx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xb0]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x65ad6b
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xb0]
mov edx, dword [ebp - 0x10]
call fcn.0059e9cc
mov al, byte [eax + 0x40]
cmp al, byte [ebp - 0x39]
jne 0x65ad65
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xb0]
mov edx, dword [ebp - 0x10]
call fcn.0059e9cc
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x34]
call fcn.00588f44
jne 0x65ad65
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xb0]
mov edx, dword [ebp - 0x10]
call fcn.0059e9cc
mov ebx, eax
jmp 0x65ad6b
inc dword [ebp - 0x10]
dec edi
jne 0x65ad19
test ebx, ebx
jne 0x65b330
mov edx, dword [0x652230]
mov eax, 0xb8
call fcn.00589634
mov ebx, eax
mov edx, 0xb8
mov eax, ebx
call fcn.0058bcc4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xb0]
mov edx, ebx
call fcn.0059e870
mov eax, dword [ebp - 0x28]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx], eax
lea eax, [ebx + 8]
mov edx, dword [ebp - 0x34]
call fcn.00588c04
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 0x38]
call fcn.00588c04
mov al, byte [ebp - 0x39]
mov byte [ebx + 0x40], al
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.00588f44
je 0x65adf0
lea edx, [ebp - 0x8c]
mov eax, dword [ebp + 0xc]
call fcn.005d54c8
mov edx, dword [ebp - 0x8c]
lea eax, [ebp + 0xc]
call fcn.00588c28
lea eax, [ebp - 0x94]
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0xc]
call fcn.00588e94
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x90]
call fcn.0058d288
mov edx, dword [ebp - 0x90]
lea eax, [ebx + 0x10]
call fcn.00588c04
lea edx, [ebp - 0x98]
mov eax, dword [ebx + 0x10]
call fcn.00661268
mov ecx, dword [ebp - 0x98]
mov dl, 1
mov eax, dword [0x6610c4]
call fcn.006617b4
mov dword [ebx + 0x38], eax
lea edx, [ebp - 0x9c]
mov eax, dword [ebx + 0x10]
call fcn.00661494
mov ecx, dword [ebp - 0x9c]
mov dl, 1
mov eax, dword [0x6610c4]
call fcn.006617b4
mov dword [ebx + 0x3c], eax
mov al, byte [ebx + 0x40]
cmp al, 2
jne 0x65af0f
push 0x65b53c
mov eax, 0x100000
call fcn.00586f54
lea ecx, [ebp - 0xa8]
mov edx, 5
call fcn.0058d9ac
push dword [ebp - 0xa8]
push 0x65b548
lea eax, [ebp - 0xa4]
mov edx, 3
call fcn.0058883c
mov edx, dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
call fcn.00588d9c
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x24]
call fcn.0058d288
lea edx, [ebp - 0xb0]
mov eax, dword [ebx + 0x10]
call fcn.005d55bc
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.005d54c8
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 0x24]
call fcn.00588e34
mov eax, dword [ebp - 0xac]
call fcn.005d576c
test al, al
jne 0x65ae71
jmp 0x65b033
sub al, 1
je 0x65af1b
sub al, 2
jne 0x65b033
call fcn.0058f98c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0xb8]
call fcn.0065a898
mov eax, dword [ebp - 0xb8]
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0x80], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x84], eax
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x10
mov eax, 0x100000
call fcn.00586f54
lea ecx, [ebp - 0xc4]
mov edx, 5
call fcn.0058d9ac
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
mov edx, 0x65b53c
call fcn.005887c8
mov edx, dword [ebp - 0xc0]
lea eax, [ebp - 0xbc]
call fcn.00588d9c
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0x24]
call fcn.0058d288
lea edx, [ebp - 0xd0]
mov eax, dword [ebx + 0x10]
call fcn.005d5518
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.005d55bc
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
call fcn.005d54c8
lea eax, [ebp - 0xc8]
mov edx, dword [ebp - 0x24]
call fcn.00588e34
mov eax, dword [ebp - 0xc8]
call fcn.005d5758
test al, al
jne 0x65af75
mov eax, dword [ebp - 0x24]
call fcn.00588e28
add eax, eax
push eax
mov eax, dword [ebp - 0x24]
call fcn.00588e18
mov edx, eax
lea eax, [ebx + 0x14]
pop ecx
call fcn.0058bcbc
mov al, byte [ebx + 0x40]
dec eax
sub al, 3
jae 0x65b2e8
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 8]
xor edx, edx
call fcn.00588f44
je 0x65b2e8
mov byte [ebp - 0x3a], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
call fcn.00589a3c
mov edi, eax
dec edi
test edi, edi
jl 0x65b1e9
inc edi
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*8]
lea edx, [ebp - 0xd4]
call fcn.0058d288
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 8]
call fcn.00588f44
jne 0x65b1df
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*8 + 4]
lea edx, [ebp - 0x24]
call fcn.005d54c8
mov eax, dword [ebx + 0x38]
call fcn.00661714
dec eax
test eax, eax
jl 0x65b12d
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xe0]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x38]
call fcn.006616f4
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0xdc]
mov edx, dword [ebp - 0x24]
call fcn.00588e94
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0xd8]
call fcn.005d54c8
mov edx, dword [ebp - 0xd8]
lea eax, [ebp - 0x24]
call fcn.00588c28
inc dword [ebp - 0x18]
dec dword [ebp - 0x48]
jne 0x65b0e1
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x24]
call fcn.00588c04
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x6610c4]
call fcn.006617b4
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*8 + 4]
lea edx, [ebp - 0x24]
call fcn.005d54c8
mov eax, dword [ebx + 0x3c]
call fcn.00661714
dec eax
test eax, eax
jl 0x65b1c9
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xec]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x3c]
call fcn.006616f4
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0xe8]
mov edx, dword [ebp - 0x24]
call fcn.00588e94
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0xe4]
call fcn.005d54c8
mov edx, dword [ebp - 0xe4]
lea eax, [ebp - 0x24]
call fcn.00588c28
inc dword [ebp - 0x18]
dec dword [ebp - 0x48]
jne 0x65b17d
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x6610c4]
call fcn.006617b4
mov dword [ebx + 0x34], eax
mov byte [ebp - 0x3a], 1
inc dword [ebp - 0x14]
dec edi
jne 0x65b07a
cmp byte [ebp - 0x3a], 0
jne 0x65b2e8
push 0
push 0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 8]
call fcn.00588e18
push eax
call fcn.005d6118
movzx ecx, word [ebp - 0x44]
shr ecx, 1
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x40]
call fcn.00588cbc
lea edx, [ebp - 0xf4]
mov eax, dword [ebp - 0x24]
call fcn.0058d288
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
call fcn.005d54c8
mov edx, dword [ebp - 0xf0]
lea eax, [ebp - 0x24]
call fcn.00588c28
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
call fcn.00589a3c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
add eax, 0x110
mov ecx, 1
mov edx, dword [0x652324]
call fcn.00589c18
add esp, 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx*8]
mov edx, dword [ebx + 0x38]
mov edx, dword [edx + 8]
call fcn.00588c04
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx*8 + 4]
mov edx, dword [ebp - 0x24]
call fcn.00588c04
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x24]
call fcn.00588c04
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x6610c4]
call fcn.006617b4
mov dword [ebx + 0x30], eax
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x6610c4]
call fcn.006617b4
mov dword [ebx + 0x34], eax
mov dl, 1
mov eax, dword [0x59c0fc]
call fcn.00587568
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x59c0fc]
call fcn.00587568
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x59c0fc]
call fcn.00587568
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x59c0fc]
call fcn.00587568
mov dword [ebx + 0xb0], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0xac], eax
cmp byte [ebx + 0x40], 2
jne 0x65b469
mov al, byte [esi]
mov byte [ebx + 0x51], al
inc esi
mov al, byte [esi]
mov byte [ebx + 0x50], al
inc esi
mov eax, dword [esi]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x5c], eax
add esi, 8
mov edx, 0x1000
mov eax, dword [ebx + 0x58]
call fcn.00652918
xor edx, edx
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0xb8]
call fcn.0065a898
mov eax, dword [ebp - 0xb8]
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebx + 0x6c], eax
add esi, 8
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0xb8]
call fcn.0065a898
mov eax, dword [ebp - 0xb8]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebx + 0x84], eax
add esi, 8
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0xb8]
call fcn.0065a898
mov eax, dword [ebp - 0xb8]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebx + 0x7c], eax
add esi, 8
mov eax, dword [ebx + 0x78]
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x74], eax
mov eax, dword [esi]
mov dword [ebx + 0x4c], eax
add esi, 4
mov al, byte [esi]
mov byte [ebx + 0x88], al
inc esi
lea eax, [ebx + 0x8c]
mov edx, esi
call fcn.00588d20
mov eax, dword [ebx + 0x8c]
call fcn.00588e28
add eax, eax
add eax, 2
add esi, eax
mov eax, dword [esi]
mov dword [ebx + 0xa4], eax
add esi, 4
xor eax, eax
mov dword [ebx + 0x9c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebx + 0xa0], eax
push 1
push 0
mov eax, dword [ebx + 0xa4]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0058b2c0
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0xa4]
add dword [eax], edx
mov eax, dword [ebp - 0x20]
call fcn.00586ab0
mov edi, dword [ebp - 0x30]
dec edi
test edi, edi
jl 0x65b497
inc edi
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0065a91c
pop ecx
dec edi
jne 0x65b47a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65b524
lea eax, [ebp - 0xf4]
mov edx, 0xc
call fcn.00588be0
lea eax, [ebp - 0xc4]
mov edx, 2
call fcn.005884d0
lea eax, [ebp - 0xbc]
call fcn.00588bc8
lea eax, [ebp - 0xb0]
mov edx, 2
call fcn.00588be0
lea eax, [ebp - 0xa8]
mov edx, 2
call fcn.005884d0
lea eax, [ebp - 0xa0]
mov edx, 0x16
call fcn.00588be0
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00588be0
lea eax, [ebp - 0x24]
call fcn.00588bc8
lea eax, [ebp + 0xc]
call fcn.00588bc8
ret