Function at 0x872be7
Capabilities:
Encode data using base64
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
xor eax, eax
push esi
mov esi, edx
mov dword [ebp - 0x80], eax
mov edx, ecx
mov dword [ebp - 0x48], eax
push edi
mov dword [ebp - 0x3c], edx
mov edi, dword [edx]
lea ebx, [edx + 0x2f0]
mov dword [ebp - 0x58], edi
mov eax, dword [edi + 8]
mov dword [ebp - 4], eax
lea eax, [edx + 0x50]
mov dword [ebp - 0x6c], eax
mov eax, dword [edi]
mov dword [ebp - 0x5c], eax
imul eax, esi, 0x50
add ebx, eax
mov dword [ebp - 0x28], ebx
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebx + 0x2c]
imul ecx, eax, 0x48
mov eax, dword [edx + 4]
add eax, 8
add eax, ecx
lea ecx, [edx + 0x1e8]
mov dword [ebp - 0x74], eax
mov eax, dword [eax + 0x2c]
mov edx, eax
mov dword [ebp - 0x24], eax
call fcn.00875a99
mov ecx, dword [ebp - 0x3c]
not eax
and eax, dword [ebp + 8]
not edx
and edx, dword [ebp + 0xc]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], edx
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov ecx, esi
call fcn.008a1290
xor ecx, ecx
inc ecx
and eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
push 0x20
pop edx
test byte [eax + 0x24], 0x40
je 0x872c92
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x2c], dl
jne 0x872c92
mov dword [ebp - 0xc], ecx
jmp 0x872c96
and dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
call fcn.00844fbd
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
call fcn.00844fbd
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x7c], eax
mov dword [ebx + 0x18], eax
jbe 0x872cdd
mov eax, dword [ebp - 0x74]
test byte [eax + 0x24], 8
je 0x872cdd
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 4]
inc eax
push eax
push 0
push 0x43
mov dword [edi + 0x2c], eax
pop edx
mov dword [ebx], eax
call fcn.00844d77
pop ecx
pop ecx
xor edx, edx
mov eax, esi
test esi, esi
jle 0x872cf3
mov ecx, ebx
cmp dword [ecx], edx
jne 0x872cf3
dec eax
sub ecx, 0x50
test eax, eax
jg 0x872ce7
mov ecx, dword [ebp - 0x3c]
imul eax, eax, 0x50
mov eax, dword [eax + ecx + 0x2fc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x74]
test byte [eax + 0x28], 0x10
je 0x872d3d
push dword [eax + 0x18]
mov esi, dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
push edx
push esi
push 0xf
pop edx
call fcn.00844cf3
mov ecx, dword [ebp - 4]
add esp, 0xc
push dword [ebp - 0x50]
push esi
push 0x10
pop edx
call fcn.00844d77
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x2d], 0xd
jmp 0x873d06
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x24]
test eax, 0x400
je 0x872f48
movzx eax, word [ecx + 0x28]
mov ecx, edi
mov dword [ebp - 0x28], eax
call fcn.00854fb4
lea edx, [eax + 2]
call fcn.00857165
mov ecx, eax
xor esi, esi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x28], esi
jle 0x872dc6
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x872dc0
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x872da8
lea eax, [ecx + 2]
mov ecx, edi
add eax, esi
push eax
push dword [ebp - 0x38]
push esi
push ebx
call fcn.008724a2
mov eax, dword [ebx + 0x10]
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x872dbd
mov edx, dword [edx]
push eax
lea eax, [ecx + 2]
mov ecx, edi
add eax, esi
mov edx, dword [edx + 0x10]
push eax
call fcn.00872a99
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 0x28]
jl 0x872d76
mov eax, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 4]
push dword [eax + 0x18]
push 0x43
pop edx
call fcn.00844d77
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x28]
inc eax
mov ecx, dword [ebp - 4]
push eax
push esi
push 0x43
pop edx
call fcn.00844d77
mov ecx, dword [ebp - 0x1c]
or eax, 0xffffffff
push 0xfffffffffffffff9
pop edx
cmp byte [ecx + 0x1c], 0
cmovne eax, edx
push eax
push dword [ecx + 0x20]
mov ecx, dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x24]
push 0xb
pop eax
mov edx, eax
call fcn.00844e3d
mov edx, dword [ebp - 0x1c]
add esp, 0x24
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov byte [edx + 0x1c], 0
mov dword [ebx + 0x30], eax
cmp byte [ecx + 0x31], 0
push 0x3d
pop eax
lea ecx, [eax + 0x6c]
cmovne eax, ecx
mov ecx, dword [ebp - 4]
mov byte [ebx + 0x2d], al
call fcn.00845161
lea ecx, [esi - 1]
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x18], ecx
test ecx, ecx
js 0x872f3c
imul esi, eax, 0xc
mov dword [ebp - 0x28], esi
mov eax, dword [edx + 0x30]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0xc], edx
cmp ecx, 0x10
jge 0x872e86
mov eax, dword [ebp - 0x1c]
mov ax, word [eax + 0x1e]
shr ax, cl
test al, 1
je 0x872e83
mov ecx, ebx
call fcn.00872261
jmp 0x872f2a
mov ecx, dword [ebp - 0x18]
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x872f2d
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x49], 0
jne 0x872ec4
mov edx, dword [ebx + 0x3c]
sub esi, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x28], esi
mov edx, dword [edx + esi + 4]
call fcn.0084556a
push dword [eax + 0xc]
movzx edx, byte [eax]
push dword [eax + 8]
push dword [eax + 4]
call fcn.00844cf3
add esp, 0xc
xor eax, eax
mov ecx, edi
push eax
push eax
push 0x35
pop edx
call fcn.00852c43
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x872f27
mov ecx, dword [ebp - 0xc]
mov edx, 0x9a
push 0
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00852bc2
mov dword [esi + 0x10], eax
pop ecx
test eax, eax
je 0x872f19
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
add edx, 2
add ecx, edx
push 0
mov dword [eax + 0x1c], ecx
push dword [ebx + 0x18]
push esi
push edi
call fcn.008565b1
add esp, 0x10
mov ecx, dword [ebp - 0x5c]
mov edx, esi
and dword [esi + 0xc], 0
call fcn.00852fd7
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x18], ecx
jns 0x872e5b
mov ecx, edi
call fcn.00854fb8
jmp 0x873d08
test al, 5
setne cl
bt eax, 8
setb al
test al, cl
mov eax, dword [ebp - 0x1c]
je 0x872fc3
mov eax, dword [eax + 0x30]
mov ecx, edi
mov edx, dword [eax]
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
push 0
push ebx
call fcn.008724a2
mov edx, dword [ebp - 0xc]
mov esi, eax
add esp, 0x10
cmp esi, edx
je 0x872f8a
mov ecx, edi
call fcn.00857122
mov ecx, dword [ebp - 4]
push esi
push dword [ebx + 0x10]
push dword [ebp - 0x24]
push 0x1f
pop edx
call fcn.00844cf3
add esp, 0xc
xor eax, eax
inc eax
mov edx, esi
mov ecx, edi
push eax
call fcn.00855214
mov edx, dword [ebp - 0x24]
pop ecx
push esi
push 0xffffffffffffffff
mov ecx, edi
call fcn.00854eec
mov byte [ebx + 0x2d], 0xa9
jmp 0x873d06
mov ecx, dword [eax + 0x24]
mov eax, ecx
and eax, 0x102
cmp eax, 0x102
jne 0x8731d0
push 0x20
pop eax
mov dword [ebp - 0x18], 0xa9
mov esi, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], edx
test al, cl
je 0x873000
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov esi, dword [eax]
xor eax, eax
lea edx, [eax + 1]
jmp 0x873003
mov edx, dword [ebp - 0xc]
test cl, 0x10
je 0x873016
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x20], ecx
jmp 0x873019
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x873025
mov dword [ebp - 0x20], esi
mov esi, ecx
test esi, esi
je 0x8730cc
mov edx, dword [esi]
mov dword [ebp - 8], 0x1a18191b
mov dword [ebp - 0xc], edx
mov ecx, dword [edx + 0x10]
call fcn.00852724
mov ecx, edi
test eax, eax
je 0x873075
call fcn.00857103
mov edx, dword [edx + 0x10]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x28], esi
inc eax
push eax
push esi
call fcn.00872a99
mov edx, dword [ebp - 0xc]
xor eax, eax
pop ecx
pop ecx
inc eax
movzx ecx, byte [edx]
inc ecx
and ecx, 2
or ecx, eax
mov al, byte [ebp + ecx - 8]
jmp 0x87309b
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x34]
push eax
call fcn.00855f99
pop ecx
mov edx, esi
mov dword [ebp - 0x28], eax
mov ecx, ebx
call fcn.00872261
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x34]
movzx ecx, byte [edx]
mov al, byte [ebp + ecx - 0x3e]
push dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x50]
movzx edx, al
push dword [ebp - 0x24]
call fcn.00844cf3
mov edx, dword [ebp - 0x28]
add esp, 0xc
xor eax, eax
mov ecx, edi
inc eax
push eax
call fcn.00855214
pop ecx
mov edx, esi
mov ecx, edi
call fcn.00857122
jmp 0x8730e7
push dword [ebp - 0x34]
test eax, eax
push dword [ebp - 0x24]
push 0x25
pop edx
push 0x21
pop ecx
cmovne edx, ecx
mov ecx, dword [ebp - 4]
call fcn.00844d77
pop ecx
pop ecx
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x873160
mov eax, dword [esi]
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
push 1
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.00872a99
mov edx, dword [ebp - 0xc]
pop ecx
pop ecx
mov eax, dword [edx + 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00852724
test eax, eax
jne 0x87313b
mov al, byte [edx]
cmp al, 0x38
je 0x873129
cmp al, 0x36
jne 0x87313b
cmp dword [ebp - 0x38], 0
push 0x39
pop edx
push 0x37
pop eax
cmovne edx, eax
mov dword [ebp - 0x18], edx
jmp 0x87314b
cmp dword [ebp - 0x38], 0
push 0x36
pop eax
push 0x38
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
call fcn.00852724
test eax, eax
jne 0x873160
mov edx, esi
mov ecx, ebx
call fcn.00872261
mov ecx, dword [ebp - 4]
call fcn.00845161
cmp dword [ebp - 0x38], 0
mov dword [ebx + 0x34], eax
sete cl
add cl, 6
cmp dword [ebp - 0x18], 0xa9
mov byte [ebx + 0x2d], cl
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x30], ecx
je 0x873d08
inc dword [edi + 0x2c]
mov esi, dword [edi + 0x2c]
push esi
push ecx
mov ecx, dword [ebp - 4]
push 0x7d
pop edx
call fcn.00844d77
mov edx, dword [ebp - 0x24]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.00854eec
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
push esi
push dword [ebp - 0x50]
push dword [ebp - 0x14]
call fcn.00844cf3
mov ecx, dword [ebp - 4]
add esp, 0x1c
push 0x53
pop edx
call fcn.00845280
jmp 0x873d08
test ecx, 0x200
je 0x8737c5
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x68], edx
movzx eax, word [esi + 0x18]
mov dword [ebp - 8], eax
movzx eax, word [esi + 0x1a]
mov dword [ebp - 0x20], eax
movzx eax, word [esi + 0x1c]
mov esi, edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0xd], dl
mov byte [ebp - 0x51], dl
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x2c], 1
je 0x87323b
cmp byte [eax + 0x2f], 0
mov eax, dword [ebp - 8]
jle 0x87323e
mov edi, dword [ebp - 0x48]
cmp word [edi + 0x32], ax
mov edi, dword [ebp - 0x58]
jbe 0x87323e
xor esi, esi
mov byte [ebp - 0xd], 1
inc esi
jmp 0x87323e
mov eax, dword [ebp - 8]
movzx eax, ax
push 0x20
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
pop eax
test al, cl
je 0x87326f
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
inc dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + edi*4]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
movzx eax, word [edi + 0x1a]
mov edi, dword [ebp - 0x58]
cmp esi, eax
cmovbe esi, eax
test cl, 0x10
je 0x87331f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
movzx eax, word [ecx + 0x1c]
mov ecx, 0x100
cmp esi, eax
cmovbe esi, eax
mov eax, dword [ebp - 0x44]
test word [eax + 0xa], cx
je 0x8732e5
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 4]
inc eax
push eax
mov dword [edi + 0x2c], eax
mov dword [ebx + 0x24], eax
xor eax, eax
inc eax
push eax
push 0x43
pop edx
call fcn.00844d77
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.00845161
shl dword [ebx + 0x24], 1
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x1c]
cmp byte [edx + eax], 1
sete cl
xor ecx, dword [ebp - 0x38]
or dword [ebx + 0x24], ecx
xor edx, edx
cmp dword [ebp - 0x18], 0
jne 0x87331f
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax + 4]
movsx ecx, word [eax + ecx*2]
mov dword [ebp - 0x14], ecx
test ecx, ecx
js 0x873314
mov eax, dword [ebp - 0x48]
add ecx, ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], 0
je 0x873319
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xfffffffe
jne 0x87331f
xor eax, eax
inc eax
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + 0x32]
mov dword [ebp - 0x14], eax
cmp cx, ax
jae 0x873350
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov edi, dword [ebp - 0x30]
mov eax, dword [eax + 0x1c]
cmp byte [edi + eax], cl
mov edi, dword [ebp - 0x58]
sete cl
cmp dword [ebp - 0x38], ecx
je 0x87335b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x38], 0
je 0x873382
cmp ax, cx
jne 0x873382
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x51], al
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0xd], dl
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x44], ecx
movzx ecx, dx
movzx eax, al
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
mov edx, ebx
push eax
push esi
push dword [ebp - 0x38]
mov ecx, edi
call fcn.008727bc
mov ecx, dword [ebp - 0x64]
add esp, 0xc
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x8733b9
mov edx, dword [ebp - 0x60]
test dx, dx
je 0x8733b9
mov edx, dword [ebp - 0x30]
lea edx, [ecx + edx]
mov ecx, dword [ebp - 0x5c]
call fcn.0082dc8c
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x8733d3
test byte [eax + 0xc], 0x28
jne 0x8733d3
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
jmp 0x8733dc
mov dword [ebp - 0x4c], 1
xor ecx, ecx
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x8733f1
test byte [edx + 0xc], 0x28
jne 0x8733f1
xor edx, edx
mov dword [ebp - 0x50], ecx
inc edx
jmp 0x8733f7
xor edx, edx
inc edx
mov dword [ebp - 0x50], edx
test eax, eax
jne 0x873404
mov dword [ebp - 0x14], ecx
cmp word [ebp - 8], ax
jbe 0x873407
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x30]
mov esi, edx
test eax, eax
je 0x8734ad
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax]
add ecx, edx
mov edi, dword [ebp - 0x20]
movzx edx, di
mov edi, dword [ebp - 0x58]
mov eax, dword [eax + 0x10]
push edx
mov dword [ebp - 0x70], ecx
mov edx, eax
push ecx
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.00872a99
push dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.008729b1
mov ecx, dword [ebp - 8]
add esp, 0xc
call fcn.00853c3e
test eax, eax
je 0x873467
push dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x70]
push 0x32
pop edx
call fcn.00844d77
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x873483
mov eax, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x20]
movzx edx, cx
mov ecx, dword [ebp - 8]
push eax
call fcn.00872320
pop ecx
mov ecx, dword [ebp - 0x20]
movzx eax, cx
mov ecx, dword [ebp - 8]
add esi, eax
call fcn.00852724
test eax, eax
jne 0x8734a3
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.00872261
jmp 0x8734a9
xor eax, eax
inc eax
mov dword [ebp - 0x4c], eax
xor al, al
jmp 0x8734d6
mov al, byte [ebp - 0xd]
test al, al
je 0x8734d6
mov eax, dword [ebp - 0x2c]
add eax, edx
push eax
push ecx
mov ecx, dword [ebp - 4]
push 0x46
pop edx
call fcn.00844d77
and dword [ebp - 0x4c], 0
xor eax, eax
inc esi
inc eax
pop ecx
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0xd]
pop ecx
push dword [ebp - 0x64]
mov edx, dword [ebp - 0x2c]
mov ecx, esi
movzx eax, al
sub ecx, eax
push ecx
mov ecx, edi
call fcn.008722c5
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
movzx eax, word [eax + 0x2a]
test ax, ax
je 0x8734fd
cmp esi, eax
je 0x873529
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
push esi
mov esi, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x34]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x40]
movzx edx, byte [ecx + eax*2 + 0x49f1ec]
mov ecx, dword [ebp - 4]
call fcn.00844f6e
add esp, 0x10
jmp 0x87352c
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x8735e5
mov eax, dword [eax]
mov ecx, edi
mov edx, dword [ebp - 0x30]
add edx, esi
push 1
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x4c], eax
call fcn.00854f76
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x4c]
movzx esi, ax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
pop ecx
push esi
push eax
mov ecx, edi
call fcn.00872a99
push dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.008729b1
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
call fcn.00853c3e
test eax, eax
je 0x873599
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
push eax
push 0x32
pop edx
call fcn.00844d77
pop ecx
pop ecx
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x8735c2
mov ecx, dword [ebp - 0x4c]
mov edx, esi
push eax
call fcn.00872320
mov edx, dword [ebp - 0x2c]
pop ecx
mov ecx, dword [ebp - 0x30]
push dword [ebp - 0x68]
push esi
lea edx, [edx + ecx]
mov ecx, edi
call fcn.008722c5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
add dword [ebp - 0x30], esi
call fcn.00852724
test eax, eax
jne 0x8735dd
mov edx, dword [ebp - 0x44]
mov ecx, ebx
call fcn.00872261
jmp 0x873613
xor eax, eax
inc eax
mov dword [ebp - 0x50], eax
jmp 0x873613
cmp byte [ebp - 0x51], 0
je 0x873613
add esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
push esi
push 0
push 0x46
pop edx
call fcn.00844d77
xor eax, eax
mov edx, esi
inc eax
mov ecx, edi
push eax
call fcn.00854f76
and dword [ebp - 0x50], 0
add esp, 0xc
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x5c]
call fcn.0082d90a
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
call fcn.0082d90a
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00845161
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x87365f
mov ecx, dword [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x50]
push dword [ebp - 0x34]
push dword [ebp - 0x40]
movzx edx, byte [eax + ecx*2 + 0x49d1ac]
mov ecx, esi
call fcn.00844f6e
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x873762
mov edx, dword [ebp - 0x48]
push 0x20
pop eax
mov ecx, dword [edx + 0xc]
test byte [ecx + 0x24], al
jne 0x8736e3
mov ecx, dword [ebp - 0x3c]
movzx eax, word [ecx + 0x2c]
test eax, 0x400
jne 0x8736a7
test eax, 0x1000
je 0x873694
xor eax, eax
inc eax
cmp byte [ecx + 0x31], al
je 0x8736a7
mov esi, dword [ebp - 0x40]
push esi
push dword [ebp - 0x24]
call fcn.008729e5
pop ecx
pop ecx
jmp 0x873765
inc dword [edi + 0x2c]
mov edx, 0x84
mov esi, dword [edi + 0x2c]
mov ecx, dword [ebp - 4]
push esi
push dword [ebp - 0x40]
call fcn.00844d77
mov edx, dword [ebp - 0x24]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.00854eec
mov ecx, dword [ebp - 4]
push esi
push 0
push dword [ebp - 0x24]
push 0x20
pop eax
mov edx, eax
call fcn.00844cf3
add esp, 0x1c
jmp 0x873762
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x873768
call fcn.00859f5b
mov esi, eax
mov ecx, edi
movzx edx, word [esi + 0x32]
call fcn.00857165
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x14], ecx
cmp ax, word [esi + 0x32]
jae 0x873748
xor ebx, ebx
mov edi, ecx
mov ecx, dword [ebp - 0x48]
lea eax, [ebx + edi]
push eax
mov eax, dword [esi + 4]
mov dx, word [eax + ebx*2]
call fcn.00859f73
mov ecx, dword [ebp - 4]
cwde
push eax
push dword [ebp - 0x40]
push 0x62
pop edx
call fcn.00844cf3
movzx eax, word [esi + 0x32]
add esp, 0xc
inc ebx
cmp ebx, eax
jl 0x873710
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
movzx eax, word [esi + 0x32]
push eax
push ecx
push dword [ebp - 0x7c]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x24]
push 0x1d
pop edx
call fcn.00844f6e
add esp, 0x10
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
cmp dword [ebx], 0
jne 0x87377d
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
mov edx, eax
push esi
call fcn.00872b59
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
test dword [ecx + 0x24], 0x1000
je 0x87378f
mov byte [ebx + 0x2d], 0xa9
jmp 0x87379b
cmp dword [ebp - 0x38], 0
sete al
add al, 6
mov byte [ebx + 0x2d], al
xor edx, edx
mov dword [ebx + 0x30], esi
mov al, byte [ecx + 0x26]
inc edx
and al, dl
mov byte [ebx + 0x2e], al
test byte [ecx + 0x24], 0xf
jne 0x8737b2
mov byte [ebx + 0x2f], dl
cmp dword [ebp - 0xc], 0
je 0x873d08
and dword [ebp - 0x48], 0
jmp 0x873d08
test ecx, 0x2000
je 0x873cc6
mov eax, dword [edi + 0x28]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x38], eax
inc eax
inc dword [edi + 0x2c]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x50], edx
call fcn.00844fbd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ecx + 0x30]
mov edx, dword [edx + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x44], edx
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebp - 0x3c]
mov byte [ebx + 0x2d], 0x3f
mov cl, byte [ecx + 0x2e]
cmp cl, 1
jbe 0x8738f9
movzx ecx, cl
sub ecx, esi
dec ecx
mov dword [ebp - 0x70], ecx
imul ecx, ecx, 0x48
push eax
add ecx, 0x50
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.0082db0f
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x873862
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
jmp 0x873f8d
mov edx, dword [ebp - 0x70]
lea edi, [ecx + 8]
mov esi, dword [ebp - 0x74]
push 0x12
lea eax, [edx + 1]
movzx eax, al
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
inc eax
mov dword [ebp - 0x34], ecx
cmp edx, eax
jl 0x8738c6
mov eax, dword [ebp - 0x2c]
add eax, 0x50
mov dword [ebp - 0x70], eax
lea eax, [ebx + 0x7c]
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x14], eax
movzx eax, byte [eax]
lea esi, [ecx + 8]
imul eax, eax, 0x48
mov edi, ebx
push 0x12
pop ecx
add ebx, 0x48
add esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0x50
mov dword [ebp - 0x14], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x34]
sub edx, 1
jne 0x87389d
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
xor eax, eax
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x3c]
test byte [ecx + 0x2c], 0x10
jne 0x87393e
push 0x20
pop ecx
test byte [edx + 0x24], cl
jne 0x873904
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
push ecx
push eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 4]
push 0x46
pop edx
call fcn.00844d77
pop ecx
pop ecx
jmp 0x873935
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x2c], ecx
jmp 0x8738ce
mov ecx, edx
call fcn.00859f5b
mov esi, eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x20], eax
lea ecx, [eax + 1]
mov dword [edi + 0x28], ecx
movzx ecx, word [esi + 0x32]
push ecx
mov ecx, dword [ebp - 4]
push eax
push 0x6e
pop edx
call fcn.00844d77
pop ecx
pop ecx
mov edx, esi
mov ecx, edi
call fcn.0084554f
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x50], eax
push dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov ecx, esi
push 0
push 0x43
pop edx
call fcn.00844d77
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x6c]
pop ecx
pop ecx
cmp dword [eax + 0xc], 1
jle 0x8739f1
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [eax + 0xc], edx
jle 0x8739f1
mov edi, dword [ebp - 0x5c]
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 0x34], ebx
mov esi, ebx
mov eax, dword [eax + 0x14]
add eax, ecx
cmp eax, dword [ebp - 0x1c]
je 0x8739bb
test byte [eax + 0xa], 6
jne 0x8739bb
mov esi, 0x1fff
test word [eax + 0xc], si
mov esi, dword [ebp - 8]
je 0x8739bb
mov edx, dword [eax]
mov ecx, edi
push ebx
call fcn.0085331c
pop ecx
push eax
mov edx, esi
mov ecx, edi
call fcn.00852d37
mov edx, dword [ebp - 0x14]
mov esi, eax
pop ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 0x6c]
inc edx
add ecx, 0x30
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x34], ecx
cmp edx, dword [eax + 0xc]
jl 0x87397c
mov ebx, dword [ebp - 0x28]
test esi, esi
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 4]
je 0x8739f1
mov ecx, dword [ebp - 8]
mov edx, 0x12c
push ecx
push 0
mov ecx, edi
call fcn.00852c43
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov ecx, 0x400
push 0x20
mov ax, word [eax + 0x2c]
and ax, cx
pop ecx
or ax, cx
movzx eax, ax
mov dword [ebp - 0x70], eax
xor eax, eax
push 0x4a6ebc
inc eax
push eax
push edi
call fcn.00844ece
mov edx, dword [ebp - 0x64]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ecx, eax
cmp dword [edx + 0xc], eax
jle 0x873c4d
xor ebx, ebx
imul eax, ecx, 0x30
add eax, dword [edx + 0x14]
mov edx, dword [ebp - 0x24]
cmp dword [eax + 0x14], edx
je 0x873a50
mov edx, 0x400
test word [eax + 0xc], dx
je 0x873c38
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], ebx
test ecx, ecx
je 0x873a61
mov dword [ecx + 0xc], eax
mov eax, ecx
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov ecx, edi
push dword [ebp - 0x70]
push ebx
push ebx
push eax
call fcn.00879734
add esp, 0x14
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x873c35
mov edx, dword [ebp - 0x2c]
lea ecx, [eax + 0x2f0]
push ebx
push ecx
mov ecx, edi
call fcn.00872015
mov eax, dword [ebp - 0x3c]
pop ecx
pop ecx
test byte [eax + 0x2c], 0x10
jne 0x873bbb
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x40]
push 0xffffffffffffffff
pop edx
mov eax, dword [eax + 0xc]
dec eax
cmp ecx, eax
mov eax, dword [ebp - 0x44]
push 0x20
cmove ecx, edx
mov dword [ebp - 0x34], ecx
pop ecx
test byte [eax + 0x24], cl
jne 0x873af4
push ebx
push dword [ebp - 0x50]
mov ecx, edi
push dword [ebp - 0x24]
push edx
mov edx, eax
call fcn.00855107
push dword [ebp - 0x34]
mov ecx, esi
push eax
push ebx
push dword [ebp - 0x20]
push 0x2d
pop edx
call fcn.00844f6e
add esp, 0x20
mov dword [ebp - 0x14], eax
jmp 0x873bbb
mov ecx, eax
call fcn.00859f5b
mov ecx, edi
mov dword [ebp - 0x88], eax
movzx edx, word [eax + 0x32]
mov dword [ebp - 0x68], edx
call fcn.00857165
mov ecx, eax
mov dword [ebp - 0x18], ecx
test edx, edx
je 0x873b49
mov esi, ebx
mov eax, dword [ebp - 0x88]
add ecx, esi
mov edx, dword [ebp - 0x44]
push ecx
push dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov ecx, edi
movsx eax, word [eax + esi*2]
push eax
call fcn.008551a1
mov edx, dword [ebp - 0x68]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
inc esi
cmp esi, edx
jl 0x873b1a
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x873b6b
push edx
push ecx
push ebx
push dword [ebp - 0x20]
mov ecx, esi
push 0x1e
pop edx
call fcn.00844f6e
mov dword [ebp - 0x14], eax
add esp, 0x10
mov eax, dword [ebp - 0x34]
test eax, eax
js 0x873bad
push dword [ebp - 0x50]
mov ecx, esi
push dword [ebp - 0x68]
push dword [ebp - 0x18]
push 0x65
pop edx
call fcn.00844cf3
add esp, 0xc
mov edx, 0x81
mov ecx, esi
push dword [ebp - 0x68]
push dword [ebp - 0x18]
push dword [ebp - 0x50]
push dword [ebp - 0x20]
call fcn.00844f6e
add esp, 0x10
cmp dword [ebp - 0x34], ebx
je 0x873bad
push 0x10
pop edx
mov ecx, esi
call fcn.00845280
push dword [ebp - 0x68]
mov edx, dword [ebp - 0x18]
mov ecx, edi
call fcn.0085719b
pop ecx
push dword [ebp - 0x30]
mov ecx, esi
push dword [ebp - 0xc]
push 0xe
pop edx
call fcn.00844d77
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
je 0x873bdd
mov edx, eax
mov ecx, esi
call fcn.00845298
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x4c]
push 1
pop ecx
cmp byte [edx + 0x32], bl
cmovne eax, ecx
mov ecx, dword [edx + 0x330]
mov dword [ebp - 0x4c], eax
test dword [ecx + 0x24], 0x200
je 0x873c2b
cmp dword [ebp - 0x40], ebx
je 0x873c0e
mov eax, dword [ebp - 0x60]
cmp dword [ecx + 0x20], eax
jne 0x873c2b
mov eax, dword [ebp - 0x44]
test byte [eax + 0x24], 0x20
je 0x873c23
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
je 0x873c2b
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x60], eax
jmp 0x873c2e
mov dword [ebp - 0x60], ebx
mov ecx, edx
call fcn.0087a027
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x64]
inc ecx
mov dword [ebp - 0x40], ecx
mov edx, eax
cmp ecx, dword [eax + 0xc]
jl 0x873a33
mov ebx, dword [ebp - 0x28]
mov ecx, edi
call fcn.00844f22
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0x38], eax
test eax, eax
je 0x873c64
mov eax, dword [ebp - 0x38]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x873c79
mov ecx, dword [ebp - 0x5c]
mov edx, eax
and dword [eax + 0xc], 0
call fcn.00852fd7
mov ecx, esi
call fcn.00845161
mov edx, dword [ebp - 0x78]
push eax
call fcn.00845250
mov edx, dword [ebx + 0xc]
pop ecx
mov ecx, esi
call fcn.00844d8c
mov edx, dword [ebp - 0x30]
mov ecx, esi
call fcn.00844fff
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
inc ecx
cmp byte [eax + 0x2e], cl
jbe 0x873cb4
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x5c]
call fcn.0082d90a
cmp dword [ebp - 0x4c], 0
jne 0x873d08
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.00872261
jmp 0x873d08
mov eax, dword [ebp - 0x74]
push 0x20
pop ecx
test byte [eax + 0x28], cl
je 0x873cd7
mov byte [ebx + 0x2d], 0xa9
jmp 0x873d08
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x34]
mov al, byte [ecx + 0x49da98]
movzx edx, byte [ecx + 0x49fe14]
mov ecx, dword [ebp - 4]
mov byte [ebx + 0x2d], al
mov eax, dword [ebp - 0x24]
push eax
mov dword [ebx + 0x30], eax
call fcn.00844d77
inc eax
mov dword [ebx + 0x34], eax
xor eax, eax
inc eax
mov byte [ebx + 0x2f], al
pop ecx
pop ecx
xor edx, edx
cmp dword [ebp - 0x48], edx
sete dl
inc edx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x6c]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
jmp 0x873dfe
xor eax, eax
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 0xa]
test al, 6
jne 0x873df4
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
or ecx, eax
je 0x873d56
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
inc ecx
mov byte [eax + 0x32], cl
jmp 0x873df1
mov ecx, dword [ebp - 0x74]
mov eax, dword [esi]
mov dword [ebp - 0x78], eax
test byte [ecx + 0x24], 8
je 0x873d72
xor ecx, ecx
inc ecx
test byte [eax + 4], cl
je 0x873df1
jmp 0x873d75
xor ecx, ecx
inc ecx
cmp edx, ecx
jne 0x873d97
push dword [ebp - 0x48]
mov edx, dword [ebx + 4]
mov ecx, eax
call fcn.00856d54
pop ecx
test eax, eax
jne 0x873e24
push 2
pop ecx
mov dword [ebp - 8], ecx
jmp 0x873df4
cmp edx, 3
jl 0x873e27
movzx eax, word [esi + 0xa]
test eax, 0x200
je 0x873dc8
mov edx, dword [ebx + 0x24]
test edx, edx
je 0x873dc8
mov eax, edx
and edx, ecx
mov ecx, dword [ebp - 4]
add edx, 0x15
shr eax, 1
push eax
call fcn.00844d63
pop ecx
mov dword [ebp - 0xc], eax
push 0x10
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push edi
call fcn.008565b1
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
je 0x873dea
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.00845298
push 4
pop eax
or word [esi + 0xa], ax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
dec eax
add esi, 0x30
mov dword [ebp - 0x14], eax
test eax, eax
jg 0x873d27
mov edx, ecx
mov dword [ebp - 0x28], edx
test ecx, ecx
jg 0x873d14
mov eax, dword [ebp - 0x6c]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
jmp 0x873f06
xor ecx, ecx
inc ecx
movzx eax, word [esi + 0xa]
test eax, 0x1000
je 0x873da4
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x873df4
push 3
jmp 0x873d91
test byte [esi + 0xa], 6
jne 0x873f02
movzx eax, word [esi + 0xc]
test al, 0x82
push 0xb
pop edi
setne cl
bt ax, di
mov edi, dword [ebp - 0x58]
setb al
test al, cl
je 0x873f02
mov ecx, dword [ebp - 0x24]
cmp dword [esi + 0x14], ecx
jne 0x873f02
cmp dword [ebx], 0
jne 0x873f02
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [ebp - 0x6c]
push 0
push 0x83
push dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
push dword [ebp + 8]
push dword [esi + 0x1c]
call fcn.00875d77
mov edx, eax
add esp, 0x14
test edx, edx
je 0x873eff
test byte [edx + 0xa], 4
jne 0x873eff
xor ecx, ecx
inc ecx
test byte [edx + 0xc], cl
je 0x873ecb
mov eax, dword [edx]
test dword [eax + 4], 0x800
je 0x873ecb
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp dword [eax], ecx
jg 0x873eff
mov esi, dword [edx]
lea edi, [ebp - 0xbc]
mov eax, dword [ebp - 0x78]
push 0xc
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
mov edi, dword [ebp - 0x58]
push 0x10
push dword [ebp - 0x7c]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xbc]
push eax
push edi
call fcn.008565b1
mov esi, dword [ebp - 0xc]
add esp, 0x10
mov edx, dword [ebp - 0x20]
dec edx
add esi, 0x30
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], esi
test edx, edx
jg 0x873e44
cmp dword [ebx], 0
je 0x873f87
mov ecx, dword [ebp - 4]
call fcn.00845161
push dword [ebx]
mov dword [ebx + 0x1c], eax
xor eax, eax
inc eax
push eax
push 0x43
pop edx
call fcn.00844d77
pop ecx
pop ecx
mov ecx, edi
call fcn.008551d3
mov eax, dword [ebp - 0x6c]
xor edx, edx
mov esi, dword [eax + 0x14]
cmp dword [eax + 0xc], edx
jle 0x873f87
test byte [esi + 0xa], 6
jne 0x873f7b
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
or ecx, eax
jne 0x873f78
push 0x10
push dword [ebp - 0x7c]
push dword [esi]
push edi
call fcn.008565b1
mov edx, dword [ebp - 0x80]
add esp, 0x10
push 4
pop eax
or word [esi + 0xa], ax
mov eax, dword [ebp - 0x6c]
inc edx
add esi, 0x30
mov dword [ebp - 0x80], edx
cmp edx, dword [eax + 0xc]
jl 0x873f48
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret