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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x50]
xor ebx, ebx
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
je 0x300d7957
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.300d1200
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push ecx
mov edx, ecx
push edx
push eax
call fcn.30077890
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x2c]
add esp, 0xc
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x12], 1
je 0x300d7987
mov ecx, dword [ecx + 8]
jmp 0x300d7989
xor ecx, ecx
push ebx
push ebx
add eax, 0x4c
push eax
push ecx
lea ecx, [esp + 0x210]
call fcn.30113900
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
je 0x300d79ab
mov ecx, dword [ecx + 8]
jmp 0x300d79ad
xor ecx, ecx
push ebx
push ebx
add eax, 0x4c
push eax
push ecx
lea ecx, [esp + 0x348]
call fcn.30113900
mov esi, dword [edi + 0x2c]
mov ecx, esi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x68], ebx
call fcn.300850a0
test eax, eax
je 0x300d79eb
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x24]
mov cl, byte [eax + 0x139]
test cl, cl
je 0x300d79eb
lea esi, [eax + 0x10]
jmp 0x300d7a0a
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + 8]
cmp eax, dword [edx + 0x3ec]
jne 0x300d7a04
mov ecx, dword [eax + 8]
mov esi, dword [ecx + 0x3e8]
jmp 0x300d7a0a
mov esi, dword [esi + 0x2c]
add esi, 0x10
push esi
lea ecx, [esp + 0xac]
call fcn.300a3df0
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x10], 0
mov byte [esp + 0xf], 0
je 0x300d7a3c
mov ecx, dword [ecx + 8]
jmp 0x300d7a3e
xor ecx, ecx
add eax, 0x4c
push eax
push ecx
lea ecx, [esp + 0x120]
call fcn.300bb290
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
je 0x300d7a5e
mov ecx, dword [ecx + 8]
jmp 0x300d7a60
xor ecx, ecx
add eax, 0x4c
push eax
push ecx
lea ecx, [esp + 0x168]
call fcn.300bb290
cmp dword [ebp + 0x10], ebx
mov ecx, 2
mov eax, 5
je 0x300d7a9c
mov dword [esp + 0x33c], ecx
mov dword [esp + 0x164], ecx
mov dword [esp + 0x204], eax
mov dword [esp + 0x11c], eax
xor dl, dl
xor esi, esi
mov byte [esp + 0x11], dl
mov dword [esp + 0x40], esi
xor eax, eax
mov dword [esp + 0x2c], ebx
mov ecx, dword [edi + 4]
cmp eax, ecx
mov dword [esp + 0x44], eax
jbe 0x300d7b69
cmp esi, ebx
jne 0x300d7b6d
mov al, byte [esp + 0x10]
test al, al
je 0x300d7af6
mov al, byte [esp + 0xf]
test al, al
je 0x300d7af6
lea ecx, [esp + 0x200]
call fcn.30114500
cmp dword [ebp + 0x10], ebx
je 0x300d8898
lea ecx, [esp + 0x338]
call fcn.30114500
cmp dword [ebp + 0x10], ebx
je 0x300d8898
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + 0x50]
cmp esi, dword [esp + 0x6c]
je 0x300d8898
nop
movzx ebx, byte [esi + 0x2e]
mov ecx, esi
call fcn.300a3ec0
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.300a3ec0
add eax, 0x10
cmp ebx, 2
je 0x300d7b37
cmp ebx, 1
jne 0x300d8884
mov ecx, dword [esp + 0x38]
cmp dword [ecx], 0x7ffffff
je 0x300d8884
cmp dword [eax], 0x7ffffff
je 0x300d8884
mov ecx, dword [edi + 0x2c]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
je 0x300d8834
mov ecx, dword [ecx + 8]
jmp 0x300d8836
cmp esi, ebx
je 0x300d7b8e
sub eax, 2
mov dword [esp + 0x14], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov ecx, dword [esi]
cmp ecx, 7
ja case.default.0x300d7b87
jmp dword [ecx*4 + 0x300d88b0]
mov esi, eax
imul esi, esi, 0x1c
add esi, dword [edi]
cmp eax, ecx
mov dword [esp + 0x14], esi
jne 0x300d7b7c
test dl, dl
je case.default.0x300d7b87
mov al, byte [esp + 0x12]
test al, al
jne case.default.0x300d7b87
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x90], edx
mov dl, byte [esp + 0x11]
mov byte [edi + 0x44], 1
mov edi, dword [esp + 0x18]
inc eax
mov dword [esp + 0x8c], 3
mov dword [esp + 0x40], ecx
xor ebx, ebx
mov esi, ecx
jmp 0x300d7aae
cmp dword [esi + 0x18], ebx
jne 0x300d7c6b
test dl, dl
je 0x300d7c4a
mov al, byte [esp + 0x12]
test al, al
jne 0x300d7c4a
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x90], edx
mov dl, byte [esp + 0x11]
inc eax
mov dword [esp + 0x8c], 3
mov dword [esp + 0x40], ecx
xor ebx, ebx
mov esi, ecx
jmp 0x300d7aae
mov dword [esp + 0x144], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x194], ebx
mov byte [esp + 0x11], 0
cmp dword [esi], 7
jne 0x300d7e01
push 0x50
call fcn.3007a1f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x300d7e01
mov ecx, dword [edi + 0x2c]
call fcn.300d20e0
push eax
mov ecx, ebx
call fcn.300a3df0
mov ebx, eax
test ebx, ebx
je 0x300d7e01
xor eax, eax
mov word [ebx + 8], ax
mov word [ebx + 0xa], ax
mov word [ebx + 0xc], ax
mov word [ebx + 0xe], ax
mov byte [ebx + 0x2c], 1
mov esi, dword [esi + 8]
cmp esi, eax
mov dword [esp + 0x88], esi
je 0x300d7d8d
mov esi, dword [esi]
cmp esi, eax
je 0x300d7d8d
cmp dword [esi + 0x34], eax
je 0x300d7d8d
push 1
mov ecx, ebx
call fcn.300a3f20
mov edi, dword [ebx + 0x4c]
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 4]
add edi, 8
xor edx, edx
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x4c]
mov esi, dword [esp + 0x88]
mov ecx, dword [esi]
mov edi, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
test eax, eax
setne dl
xor eax, eax
dec edx
and edx, 2
test ecx, ecx
mov ecx, dword [ebx + 0x4c]
setne al
or edx, eax
or edx, 0x40
mov word [ecx], dx
mov eax, dword [ebx + 0x4c]
mov edx, dword [ebp + 8]
add edx, 0x1c
mov ecx, dword [edx]
add eax, 0x40
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [edx + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [esi]
mov cl, byte [eax + 0x20]
test cl, cl
jne 0x300d7d74
mov ecx, dword [ebx + 0x4c]
add ecx, 0x40
call fcn.3007ff30
test eax, eax
jne 0x300d7d74
xor al, al
jmp 0x300d7d76
mov al, 1
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
push 0
push ecx
push ebx
mov ecx, esi
mov byte [ebx + 0x2c], al
call fcn.300d6430
jmp 0x300d7d99
push eax
mov ecx, ebx
call fcn.300a3f20
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0x2c]
mov eax, dword [edx + 4]
cmp word [eax + 0x5a], 0
je 0x300d7daf
push 5
mov ecx, ebx
call fcn.300a3f20
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + 0x50]
mov dword [ebx + 0x20], edx
mov eax, dword [esi + 0x2c]
mov dword [eax + 0x50], ebx
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x24], eax
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x300d7dd8
mov ecx, ebx
call fcn.300b1a10
mov esi, dword [esp + 0x14]
mov eax, 1
mov dword [esp + 0x144], ebx
mov dword [esp + 0x14c], eax
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x194], eax
mov byte [esp + 0x11], al
mov eax, dword [esi + 4]
test eax, eax
jne case.default.0x300d7b87
mov eax, dword [esi + 0x18]
test eax, eax
je 0x300d7e57
mov al, byte [esp + 0x10]
test al, al
je 0x300d7e42
mov al, byte [esp + 0xf]
test al, al
je 0x300d7e42
lea ecx, [esp + 0x200]
call fcn.30114500
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x300d7e42
lea ecx, [esp + 0x338]
call fcn.30114500
mov eax, dword [esi + 0x18]
test eax, eax
mov byte [esp + 0xf], 0
je 0x300d7e57
lea ebx, [esp + 0xa8]
jmp 0x300d7e89
push 0x50
call fcn.3007a1f0
mov esi, eax
add esp, 4
test esi, esi
je case.default.0x300d7b87
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x2c]
call fcn.300d20e0
push eax
mov ecx, esi
call fcn.300a3df0
mov ebx, eax
test ebx, ebx
je case.default.0x300d7b87
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
jne 0x300d7efe
xor edx, edx
mov dl, byte [esi + 0xa]
lea edi, [ebx + 8]
and edx, 0xff
mov word [ebx + 0xc], dx
movzx ax, byte [esi + 9]
mov word [ebx + 0xa], ax
xor edx, edx
mov dl, byte [esi + 8]
mov eax, 0x51eb851f
and edx, 0xff
mov word [edi], dx
mov esi, dword [esi + 0xc]
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ebx + 0xe], ax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
add eax, 0x1c
cmp edx, ecx
je 0x300d7eed
push 1
push edi
mov ecx, eax
call fcn.300ad0a0
push edi
call fcn.3005a9a0
add esp, 4
mov byte [ebx + 0x2c], al
jmp 0x300d8073
mov eax, 0xff
mov word [ebx + 8], cx
mov word [ebx + 0xa], cx
push 2
mov ecx, ebx
mov word [ebx + 0xc], ax
mov word [ebx + 0xe], ax
call fcn.300a3f20
mov ecx, dword [esi + 0x14]
mov edx, dword [ebx + 0x4c]
sar ecx, 9
mov byte [edx + 0x94], cl
mov ecx, dword [ebx + 0x4c]
xor eax, eax
mov ax, word [esi + 0x14]
and eax, 0x1ff
mov word [ecx + 0x96], ax
mov eax, dword [ebx + 0x4c]
cmp word [eax + 0x96], 0
jne 0x300d7f6c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x300d7f5d
test byte [eax + 0x94], 0xc
jne 0x300d7f6c
xor edx, edx
test esi, esi
sete dl
lea edx, [edx + edx + 0x10]
mov dword [eax], edx
jmp 0x300d7f88
shl word [eax + 0x96], 7
mov eax, dword [ebx + 0x4c]
sar word [eax + 0x96], 7
mov eax, dword [ebx + 0x4c]
mov dword [eax], 0x13
mov ecx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x90], 0
mov edi, dword [ebx + 0x4c]
mov esi, dword [eax + 8]
add edi, 4
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0x4c]
mov esi, dword [eax + 0x10]
add edi, 0x3c
mov ecx, 0x15
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x4c]
mov byte [ebx + 0x2c], 0
mov cl, byte [eax + 0x3c]
xor esi, esi
test cl, cl
jbe 0x300d805c
mov edi, dword [ebp + 8]
add edi, 0x1c
cmp dword [edi], 0
je 0x300d803e
movzx dx, byte [eax + esi*4 + 0x50]
mov word [esp + 0x54], dx
movzx cx, byte [eax + esi*4 + 0x51]
mov word [esp + 0x52], cx
movzx dx, byte [eax + esi*4 + 0x52]
mov word [esp + 0x50], dx
movzx ax, byte [eax + esi*4 + 0x53]
push 1
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
mov word [esp + 0x5e], ax
call fcn.300ad0a0
mov edx, dword [ebx + 0x4c]
mov al, byte [esp + 0x54]
mov byte [edx + esi*4 + 0x50], al
mov ecx, dword [ebx + 0x4c]
mov dl, byte [esp + 0x52]
mov byte [ecx + esi*4 + 0x51], dl
mov eax, dword [ebx + 0x4c]
mov cl, byte [esp + 0x50]
mov byte [eax + esi*4 + 0x52], cl
mov edx, dword [ebx + 0x4c]
mov al, byte [esp + 0x56]
mov byte [edx + esi*4 + 0x53], al
mov eax, dword [ebx + 0x4c]
cmp byte [eax + esi*4 + 0x53], 0xff
jae 0x300d804c
mov byte [ebx + 0x2c], 1
mov ecx, dword [ebx + 0x4c]
movzx edx, byte [ecx + 0x3c]
inc esi
cmp esi, edx
jb 0x300d7fd3
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x300d8073
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ebx
call fcn.300d6570
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x18]
test eax, eax
jne case.default.0x300d7b87
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x2c]
mov ecx, dword [edx + 4]
cmp word [ecx + 0x5a], 0
je 0x300d80a0
push 5
mov ecx, ebx
call fcn.300a3f20
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x2c]
mov ecx, dword [edx + 0x50]
mov dword [ebx + 0x20], ecx
mov edx, dword [eax + 0x2c]
mov eax, dword [esp + 0x2c]
mov dword [edx + 0x50], ebx
mov dword [ebx + 0x24], eax
inc eax
mov dword [esp + 0x2c], eax
mov eax, 1
mov dword [esp + 0x14c], eax
mov dword [esp + 0x194], eax
mov byte [esp + 0x11], al
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [esp + 0x144], ebx
mov dword [esp + 0x18c], ebx
jne case.default.0x300d7b87
mov ecx, ebx
call fcn.300b1a10
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x18]
mov dl, byte [esp + 0x11]
inc eax
xor ebx, ebx
jmp 0x300d7aae
test dl, dl
je 0x300d8158
mov al, byte [esp + 0x12]
test al, al
jne 0x300d8158
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x8c]
mov dword [esp + 0x40], edx
inc eax
mov esi, edx
mov dl, byte [esp + 0x11]
mov dword [esp + 0x8c], 3
mov dword [esp + 0x94], ecx
xor ebx, ebx
jmp 0x300d7aae
mov al, byte [esp + 0x10]
test al, al
je 0x300d8185
mov al, byte [esp + 0xf]
test al, al
je 0x300d8185
lea ecx, [esp + 0x200]
call fcn.30114500
cmp dword [ebp + 0x10], ebx
je 0x300d8185
lea ecx, [esp + 0x338]
call fcn.30114500
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
mov byte [esp + 0xf], 0
je 0x300d81ae
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.300d1200
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push ecx
mov edx, ecx
push edx
push eax
call fcn.30077890
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x34], edx
mov dl, byte [esp + 0x11]
inc eax
mov dword [esp + 0x30], ecx
xor ebx, ebx
jmp 0x300d7aae
mov eax, dword [esi + 4]
cmp ecx, 3
mov ecx, dword [esi + 8]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov byte [esp + 0x13], 1
jne 0x300d8228
cmp dword [esi + 0xc], ebx
setne byte [esp + 0x13]
jmp 0x300d8264
mov dword [esp + 0x58], eax
cmp dword [ebp + 0x10], ebx
mov dword [esp + 0x5c], ecx
je 0x300d824a
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.300d1200
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x58]
push ecx
mov edx, ecx
push edx
push eax
call fcn.30077890
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
add esp, 0xc
cmp dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jne 0x300d827d
cmp dword [esp + 0x34], ecx
mov byte [esp + 0x12], 1
je 0x300d8282
mov byte [esp + 0x12], 0
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x300d829a
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, eax
call fcn.300d1200
mov edx, dword [ebp + 8]
lea eax, [esp + 0x24]
push eax
mov ecx, eax
push ecx
push edx
call fcn.30077890
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, al
je 0x300d84de
cmp dword [esi], 3
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x24]
push eax
push ecx
jne 0x300d82fc
lea edx, [esp + 0x24]
push edx
call fcn.30058d10
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x300d8337
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.30058d10
add esp, 0xc
jmp 0x300d8337
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.30058cd0
mov eax, dword [ebp + 0x10]
add esp, 0x10
test eax, eax
je 0x300d8337
lea ecx, [esp + 0x1e4]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.30058cd0
add esp, 0x10
mov al, byte [esp + 0xf]
test al, al
jne 0x300d84a8
push 0x50
call fcn.3007a1f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x300d84a8
mov ecx, dword [edi + 0x2c]
call fcn.300d20e0
push eax
mov ecx, ebx
call fcn.300a3df0
mov ebx, eax
test ebx, ebx
je 0x300d84a8
mov dl, byte [esp + 0xd4]
mov byte [ebx + 0x2c], dl
movzx eax, byte [esp + 0xd6]
push eax
mov ecx, ebx
call fcn.300a3f20
mov ecx, dword [esp + 0xb0]
movzx eax, byte [ebx + 0x2e]
sub eax, 0
mov dword [ebx + 8], ecx
mov edx, dword [esp + 0xb4]
mov dword [ebx + 0xc], edx
je 0x300d83bc
dec eax
je 0x300d83b5
dec eax
jne 0x300d8414
mov ecx, 0x26
jmp 0x300d8400
mov ecx, 0x22
jmp 0x300d8400
mov ecx, dword [edi + 0x2c]
call fcn.300d20e0
test eax, eax
je 0x300d83fb
mov ecx, dword [edi + 0x2c]
call fcn.300d20e0
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x300d83fb
mov ecx, dword [edi + 0x2c]
call fcn.300d20e0
cmp dword [eax + 0xe4], 4
jl 0x300d83fb
mov ecx, dword [esp + 0xf4]
mov eax, dword [ebx + 0x4c]
mov edx, dword [ecx]
mov dword [eax], edx
jmp 0x300d8414
mov ecx, 0x10
mov esi, dword [esp + 0xf4]
mov edi, dword [ebx + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x50]
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x20], ecx
mov edx, dword [edi + 0x2c]
mov dword [edx + 0x50], ebx
mov dword [ebx + 0x24], eax
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x300d843d
mov ecx, ebx
call fcn.300b1a10
mov cx, word [esp + 0x68]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x3c]
push ebx
and eax, 0xfff7
mov word [esp + 0x28e], cx
push edx
lea ecx, [esp + 0x208]
mov word [esp + 0x290], ax
call fcn.30115020
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x300d84a3
mov cx, word [esp + 0x38]
mov edx, dword [esp + 0x70]
mov ax, word [esp + 0x288]
push ebx
mov word [esp + 0x3c6], cx
push edx
lea ecx, [esp + 0x340]
mov word [esp + 0x3c8], ax
call fcn.30115020
mov byte [esp + 0xf], 1
mov al, byte [ebp + 0xc]
test al, al
jne 0x300d84de
lea eax, [esp + 0x1c8]
push eax
lea ecx, [esp + 0x204]
call fcn.301150e0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x300d84de
lea ecx, [esp + 0x1e4]
push ecx
lea ecx, [esp + 0x33c]
call fcn.301150e0
mov al, byte [esp + 0x11]
test al, al
je 0x300d8595
mov eax, dword [esi]
lea edx, [esp + 0x1ac]
cmp eax, 3
push edx
lea eax, [esp + 0x28]
push eax
jne 0x300d852e
lea ecx, [esp + 0x24]
push ecx
call fcn.30058d10
mov esi, dword [ebp + 0x10]
add esp, 0xc
test esi, esi
je 0x300d8569
lea edx, [esp + 0xfc]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.30058d10
add esp, 0xc
jmp 0x300d8569
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.30058cd0
mov esi, dword [ebp + 0x10]
add esp, 0x10
test esi, esi
je 0x300d8569
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.30058cd0
add esp, 0x10
lea ecx, [esp + 0x1ac]
push ecx
lea ecx, [esp + 0x11c]
call fcn.300bc340
test esi, esi
je 0x300d8595
lea edx, [esp + 0xfc]
push edx
lea ecx, [esp + 0x164]
call fcn.300bc340
mov al, byte [esp + 0x13]
test al, al
je case.default.0x300d7b87
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], edx
mov dl, byte [esp + 0x11]
inc eax
mov dword [esp + 0x20], ecx
xor ebx, ebx
jmp 0x300d7aae
mov al, byte [esp + 0x10]
test al, al
je 0x300d8606
mov al, byte [esp + 0xf]
test al, al
je 0x300d8606
lea ecx, [esp + 0x200]
call fcn.30114500
cmp dword [ebp + 0x10], ebx
je 0x300d8606
lea ecx, [esp + 0x338]
call fcn.30114500
cmp dword [esi + 0x10], ebx
mov byte [esp + 0x10], 0
mov byte [esp + 0xf], 0
jne case.default.0x300d7b87
cmp dword [ebp + 0x10], ebx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x7c], eax
jne 0x300d86d0
mov ebx, eax
and ebx, 6
je 0x300d86ce
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x74]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], eax
push edx
mov eax, edx
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.30077c50
add esp, 0xc
cmp ebx, 2
jne 0x300d867b
mov eax, dword [esp + 0x74]
cmp eax, 1
jge 0x300d866d
mov eax, 1
movzx edx, ax
mov dword [esp + 0x3c], edx
xor ebx, ebx
jmp 0x300d8706
cmp ebx, 4
jne 0x300d8699
mov eax, dword [esp + 0x78]
cmp eax, 1
jge 0x300d868e
mov eax, 1
movzx eax, ax
mov dword [esp + 0x3c], eax
xor ebx, ebx
jmp 0x300d8706
mov ecx, dword [edi + 0x2c]
call fcn.300d20e0
mov ecx, dword [eax + 0x38]
imul ecx, dword [esi + 4]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jge 0x300d86c3
mov eax, 1
movzx ecx, ax
mov dword [esp + 0x3c], ecx
xor ebx, ebx
jmp 0x300d8706
xor ebx, ebx
mov edx, dword [esi + 4]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.30079410
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebp + 0x10]
add esp, 8
cmp ecx, ebx
mov dword [esp + 0x3c], eax
je 0x300d8706
mov edx, dword [esi + 4]
push edx
call fcn.300cfd70
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x38], eax
xor ecx, ecx
mov cl, byte [esi + 0xa]
xor eax, eax
push ebx
mov byte [esp + 0x14], 1
and ecx, 0xff
mov word [esp + 0xb8], cx
movzx dx, byte [esi + 9]
mov word [esp + 0xb6], dx
mov al, byte [esi + 8]
and eax, 0xff
mov word [esp + 0xb4], ax
mov esi, dword [esi + 0xc]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov word [esp + 0xba], cx
lea ecx, [esp + 0xac]
call fcn.300a3f20
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1c]
add ecx, 0x1c
cmp eax, ebx
je 0x300d8782
push 1
lea edx, [esp + 0xb4]
push edx
call fcn.300ad0a0
lea eax, [esp + 0xb0]
push eax
call fcn.3005a9a0
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
mov dl, byte [esp + 0x15]
mov byte [esp + 0xd8], al
mov eax, dword [esp + 0x48]
add esp, 4
inc eax
xor ebx, ebx
jmp 0x300d7aae
test dl, dl
je 0x300d87fb
mov cl, byte [esp + 0x12]
test cl, cl
jne 0x300d87fb
mov edx, dword [edi]
mov esi, dword [esp + 0x30]
mov ecx, eax
imul ecx, ecx, 0x1c
mov dword [ecx + edx - 0x1c], 3
mov edx, dword [edi]
mov dword [ecx + edx - 0x18], esi
mov edx, dword [edi]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
sub eax, 2
mov dword [ecx + edx - 0x14], esi
mov esi, dword [esp + 0x40]
mov dl, byte [esp + 0x11]
mov dword [esp + 0x44], eax
inc eax
xor ebx, ebx
jmp 0x300d7aae
mov dword [esp + 0x144], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x194], ebx
mov byte [esp + 0x11], 0
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x18]
mov dl, byte [esp + 0x11]
inc eax
xor ebx, ebx
jmp 0x300d7aae
xor ecx, ecx
mov edx, dword [ecx + 0x3e4]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x100]
push ecx
push eax
push edx
call fcn.300787e0
mov al, byte [esi + 0x2e]
add esp, 0x10
cmp al, 2
jne 0x300d8870
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xfc]
push eax
push ecx
push esi
mov ecx, edi
call fcn.300d6570
jmp 0x300d8884
mov eax, dword [ebp + 8]
lea edx, [esp + 0xfc]
push edx
push eax
push esi
mov ecx, edi
call fcn.300d6430
mov ecx, esi
call fcn.300b1a10
mov esi, dword [esi + 0x20]
cmp esi, dword [esp + 0x6c]
jne 0x300d7b10
lea ecx, [esp + 0xa8]
call fcn.300b19f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc