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

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x64]
push ebp
push esi
mov eax, dword [ebx + 0x870]
xor esi, esi
mov dword [esp + 0x20], esi
mov ebp, dword [esp + 0x70]
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov eax, dword [esp + 0x68]
mov byte [esp + 0x38], cl
mov dword [ebx + 0x1c], esi
push edi
mov ecx, dword [eax + 0x68]
mov byte [esp + 0x13], dl
cmp ecx, esi
jne 0x1002dfae
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x28], esi
jmp 0x1002dfba
mov ecx, dword [ebp + 0x58]
mov dword [ebx + 0x28], ecx
mov eax, dword [ebp + 0x54]
mov dword [ebx + 0x2c], eax
mov al, byte [esp + 0x98]
test al, al
je 0x1002dfc9
cmp al, 1
jne 0x1002e022
mov ecx, dword [ebx + 0x1bf84]
xor edi, edi
cmp dword [ebx + 0x1bf80], esi
jle 0x1002e022
add ecx, 0xc4
mov eax, dword [ecx + 4]
mov dword [ecx - 0xb4], esi
xor edx, edx
cmp dword [ecx], esi
jle 0x1002e006
add eax, 0x15
mov byte [eax - 1], 0
mov byte [eax], 0
mov dword [eax + 7], esi
mov dword [eax + 0xb], esi
inc edx
add eax, 0x60
cmp edx, dword [ecx]
jl 0x1002dff1
mov eax, dword [ebx + 0x1bf80]
inc edi
add ecx, 0xcc
cmp edi, eax
jl 0x1002dfdf
mov al, byte [esp + 0x98]
mov dl, byte [esp + 0x13]
cmp dword [ebx + 0x1c], esi
jne 0x1002ea6d
test al, al
je 0x1002e037
cmp al, 1
jne 0x1002e8b0
mov ecx, dword [esp + 0x6c]
mov al, byte [ecx + 1]
test al, al
jne 0x1002e0c0
mov edx, dword [esp + 0x9c]
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [ebp + 0x20]
sub esp, 0x10
mov edx, esp
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
call fcn.1003a2a0
mov edx, dword [ebp + 0x64]
mov eax, dword [ebx + 0x1bf84]
mov ecx, dword [ebx + 0x1bf80]
add esp, 0x18
push edx
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x88]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x9c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xa0]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.1002ec80
add esp, 0x1c
jmp 0x1002e7eb
cmp dword [ebp + 0x50], esi
je 0x1002e337
mov eax, dword [ebp + 0x5c]
mov esi, dword [ebx + 0x1bf80]
shr dl, 3
mov ecx, dword [eax + 0x870]
mov eax, dword [eax + 0x1bf84]
mov dword [esp + 0x14], 0
mov cl, byte [ecx + 1]
shr cl, 3
sub dl, cl
mov ecx, dword [ebx + 0x1bf84]
test esi, esi
mov byte [esp + 0x13], dl
jle 0x1002e326
add ecx, 0xc4
add eax, 0xc8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], eax
mov esi, dword [ecx]
mov eax, dword [eax]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x18], eax
test esi, esi
mov dword [esp + 0x2c], 0
jle 0x1002e2f8
mov esi, dword [esp + 0x3c]
and esi, 0xff
jmp 0x1002e145
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x13]
mov cl, byte [eax + 0x14]
mov byte [ebp + 0x14], cl
movsx ecx, dl
test dl, dl
mov dword [esp + 0x1c], ecx
jle 0x1002e165
mov edx, dword [eax + 0x1c]
shl edx, cl
mov dword [ebp + 0x1c], edx
mov eax, dword [eax + 0x20]
shl eax, cl
jmp 0x1002e174
mov edx, dword [eax + 0x1c]
neg ecx
sar edx, cl
mov dword [ebp + 0x1c], edx
mov eax, dword [eax + 0x20]
sar eax, cl
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp + 0x1c]
mov eax, ecx
cdq
idiv esi
test edx, edx
je 0x1002e1a3
test ecx, ecx
mov eax, esi
jle 0x1002e192
shr eax, 1
add eax, ecx
cdq
idiv esi
jmp 0x1002e19b
shr eax, 1
sub eax, ecx
cdq
idiv esi
neg eax
mov ecx, esi
imul ecx, eax
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp + 0x20]
mov eax, ecx
cdq
idiv esi
test edx, edx
je 0x1002e1cf
test ecx, ecx
mov eax, esi
jle 0x1002e1be
shr eax, 1
add eax, ecx
cdq
idiv esi
jmp 0x1002e1c7
shr eax, 1
sub eax, ecx
cdq
idiv esi
neg eax
mov edx, esi
imul edx, eax
mov dword [ebp + 0x20], edx
mov eax, dword [ebp + 0x1c]
cdq
idiv esi
test edx, edx
jne 0x1002e1e3
mov eax, dword [ebp + 0x20]
cdq
idiv esi
test edx, edx
je 0x1002e1f8
mov eax, dword [esp + 0x9c]
push 0x30c
push eax
call fcn.100768dc
add esp, 8
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 0x34]
sub ebx, ebp
mov dword [esp + 0x28], 3
mov al, byte [esp + 0x13]
test al, al
jle 0x1002e225
mov edx, dword [ebx + edi - 4]
mov ecx, dword [esp + 0x1c]
shl edx, cl
mov dword [edi - 4], edx
mov eax, dword [ebx + edi]
shl eax, cl
jmp 0x1002e239
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + edi - 4]
neg ecx
sar edx, cl
mov dword [edi - 4], edx
mov eax, dword [ebx + edi]
sar eax, cl
mov dword [edi], eax
mov ecx, dword [edi - 4]
mov eax, ecx
cdq
idiv esi
test edx, edx
je 0x1002e267
test ecx, ecx
mov eax, esi
jle 0x1002e256
shr eax, 1
add eax, ecx
cdq
idiv esi
jmp 0x1002e25f
shr eax, 1
sub eax, ecx
cdq
idiv esi
neg eax
mov ecx, esi
imul ecx, eax
mov dword [edi - 4], ecx
mov ecx, dword [edi]
mov eax, ecx
cdq
idiv esi
test edx, edx
je 0x1002e291
test ecx, ecx
mov eax, esi
jle 0x1002e281
shr eax, 1
add eax, ecx
cdq
idiv esi
jmp 0x1002e28a
shr eax, 1
sub eax, ecx
cdq
idiv esi
neg eax
mov edx, esi
imul edx, eax
mov dword [edi], edx
mov eax, dword [edi - 4]
cdq
idiv esi
test edx, edx
jne 0x1002e2a4
mov eax, dword [edi]
cdq
idiv esi
test edx, edx
je 0x1002e2b9
mov eax, dword [esp + 0x9c]
push 0x329
push eax
call fcn.100768dc
add esp, 8
mov eax, dword [esp + 0x28]
add edi, 0x10
dec eax
mov dword [esp + 0x28], eax
jne 0x1002e209
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
inc eax
mov edx, dword [ecx]
add ebp, 0x60
add edi, 0x60
cmp eax, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
jl 0x1002e13d
mov dl, byte [esp + 0x13]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov edi, dword [ebx + 0x1bf80]
inc esi
add ecx, 0xcc
add eax, 0xcc
cmp esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], eax
jl 0x1002e116
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x34], 0
jmp 0x1002e49a
mov ebp, dword [esp + 0x74]
mov ecx, 8
mov esi, ebp
lea edi, [esp + 0x44]
cmp al, 1
rep movsd dword es:[edi], dword [esi]
jne 0x1002e3c0
mov edx, dword [esp + 0x9c]
mov eax, dword [ebx + 0x1bf84]
mov ecx, dword [ebx + 0x1bf80]
push edx
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x88]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0xac]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xb0]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x80]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x84]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x88]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 0x4c]
push edx
jmp 0x1002e426
mov eax, dword [esp + 0x9c]
mov ecx, dword [ebx + 0x1bf84]
mov edx, dword [ebx + 0x1bf80]
push eax
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x88]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xb0]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x74]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x4c]
push eax
call fcn.1002bec0
mov ecx, dword [esp + 0x98]
add esp, 0x30
mov dword [esp + 0x34], 1
push 0
push 2
push ecx
call fcn.10040da0
mov eax, dword [ebx + 0x1bf80]
mov edx, dword [ebx + 0x1bf84]
add esp, 0xc
xor esi, esi
test eax, eax
jle 0x1002e49a
add edx, 0xc4
mov edi, dword [edx]
mov eax, dword [edx + 4]
xor ecx, ecx
test edi, edi
jle 0x1002e489
add eax, 0x40
mov edi, dword [eax]
mov byte [eax - 0x2c], 1
mov dword [eax - 0x24], edi
mov edi, dword [eax + 4]
mov dword [eax - 0x20], edi
mov edi, dword [edx]
inc ecx
add eax, 0x60
cmp ecx, edi
jl 0x1002e470
mov eax, dword [ebx + 0x1bf80]
inc esi
add edx, 0xcc
cmp esi, eax
jl 0x1002e462
mov edx, dword [esp + 0x68]
mov ecx, 8
mov esi, ebp
lea edi, [esp + 0x44]
push 0
push 2
rep movsd dword es:[edi], dword [esi]
push edx
call fcn.10040da0
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebx + 0x1bf84]
add esp, 0xc
mov esi, dword [esp + 0x6c]
push eax
mov eax, dword [ebx + 0x1bf80]
push ecx
push edx
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x8c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xa0]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [ecx + 8], edx
xor edx, edx
mov dl, byte [esi + 1]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.1002eec0
mov eax, dword [esp + 0x90]
add esp, 0x28
push 0
push 2
push eax
call fcn.10040da0
mov eax, dword [ebp + 0x50]
add esp, 0xc
test eax, eax
jne 0x1002e614
mov ecx, dword [esi + 0xc4]
cmp byte [ecx], 3
jne 0x1002e585
xor eax, eax
mov al, byte [esi + 0xcc]
shl eax, 3
mov edx, dword [eax + 0x1009cf60]
mov ecx, dword [eax + 0x1009cf64]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x1009d0e0]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x1009d0e4]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x1009d260]
mov eax, dword [eax + 0x1009d264]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
jmp 0x1002e5cc
xor eax, eax
mov al, byte [esi + 0xcc]
shl eax, 3
mov ecx, dword [eax + 0x1009d020]
mov edx, dword [eax + 0x1009d024]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x1009d1a0]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x1009d1a4]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x1009d320]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x1009d324]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov eax, dword [ebx + 0x1bf84]
mov ecx, dword [ebx + 0x1bf80]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
call fcn.1002f090
mov edx, dword [esp + 0x88]
add esp, 0x20
push 0
push 2
push edx
call fcn.10040da0
add esp, 0xc
mov ecx, dword [ebx + 0x1bf80]
mov eax, dword [ebx + 0x1bf84]
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x1002e7eb
lea ebx, [eax + 0xc4]
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
xor ebp, ebp
test eax, eax
jle 0x1002e7ca
lea esi, [edi + 0x1c]
mov al, byte [esi - 8]
test al, al
jne 0x1002e6ab
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x24]
push eax
push ecx
sub esp, 0x10
mov edx, edi
mov eax, esp
sub esp, 0x10
mov ecx, dword [edx]
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, esp
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x9c]
add eax, 0x20
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
call fcn.1003a220
add esp, 0x28
jmp 0x1002e7b9
mov ecx, dword [esp + 0x6c]
cmp byte [ecx + 1], 1
jne 0x1002e734
mov edx, dword [esp + 0x9c]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
push eax
push ecx
sub esp, 0x10
mov edx, edi
mov eax, esp
sub esp, 0x10
mov ecx, dword [edx]
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, esp
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xa0]
add eax, 0x20
sub esp, 0x10
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x90]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x94]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x98]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x9c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
jmp 0x1002e7b1
mov ecx, dword [esp + 0x9c]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push edx
push eax
sub esp, 0x10
mov ecx, edi
mov edx, esp
sub esp, 0x10
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, esp
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0xa0]
add edx, 0x20
sub esp, 0x10
mov ecx, dword [edx]
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 [esp + 0x80]
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x84]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.1003a480
add esp, 0x3c
mov eax, dword [ebx]
inc ebp
add edi, 0x60
add esi, 0x60
cmp ebp, eax
jl 0x1002e648
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x14]
inc eax
add ebx, 0xcc
mov edx, dword [ecx + 0x1bf80]
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x1002e636
mov ebx, dword [esp + 0x70]
mov edx, dword [ebx + 0x1bf84]
mov eax, dword [ebx + 0x1bf80]
push edx
push eax
call fcn.1002ed20
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0xa4]
mov edx, dword [ebx + 0x1bf84]
add esp, 8
mov ecx, dword [eax + 0x64]
add eax, 0x20
push esi
push ecx
mov ecx, dword [ebx + 0x1bf80]
push edx
push ecx
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
fstp qword [esp + 0x6c]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov ecx, esp
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
mov dword [ecx], edx
mov edx, dword [esp + 0xb0]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xb4]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.1002ed80
fld qword [esp + 0x6c]
fcomp st(1)
add esp, 0x30
fnstsw ax
test ah, 0x40
fstp st(0)
jne 0x1002e896
push 0x20603e7
push esi
call fcn.100768dc
add esp, 8
mov ecx, dword [esp + 0x68]
push 0
push 2
push ecx
call fcn.10040da0
mov ebp, dword [esp + 0x80]
add esp, 0xc
xor esi, esi
mov edx, dword [esp + 0x68]
push esi
push 2
push edx
call fcn.10040da0
mov al, byte [esp + 0xa4]
add esp, 0xc
cmp al, 3
je 0x1002e93a
cmp dword [ebp + 0x54], esi
je 0x1002e93a
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ebx + 0x1bf80]
mov eax, dword [ebx + 0x1bf84]
cmp edx, esi
mov ecx, dword [ecx + 0x1bf84]
mov dword [esp + 0x14], esi
jle 0x1002e93a
add eax, 0xc4
lea edi, [ecx + 0xc8]
mov ebp, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [edi]
xor ecx, ecx
test ebp, ebp
jle 0x1002e91c
add edx, 0x18
add esi, 0x18
mov ebp, dword [esi]
inc ecx
mov dword [edx], ebp
mov ebp, dword [eax]
add edx, 0x60
add esi, 0x60
cmp ecx, ebp
jl 0x1002e90b
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x1bf80]
inc ecx
add eax, 0xcc
add edi, 0xcc
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x1002e8f8
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x9c]
push ecx
mov esi, dword [esp + 0x8c]
mov ecx, dword [eax + 0x5c]
lea edx, [eax + 0x20]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x9c]
push edx
mov dl, byte [ecx + 0x86c]
mov ecx, dword [esp + 0x78]
push edx
mov edi, dword [esp + 0x98]
mov ebp, dword [esp + 0x9c]
mov edx, dword [ecx + 0x1bf80]
mov ebx, dword [esp + 0xa0]
push edx
add eax, 0x30
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x74]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx]
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xc8]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xcc]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0xd0]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xd4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0xc4]
mov eax, dword [edx + 0x48]
push eax
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 0x1bf84]
push ecx
push eax
call fcn.1002f2d0
mov al, byte [esp + 0xf4]
add esp, 0x5c
test al, al
je 0x1002ea34
cmp al, 3
jne 0x1002eab5
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov ecx, esp
mov dword [edx + 0xc], eax
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
call fcn.1003a330
add esp, 0x20
jmp 0x1002eaae
mov edx, dword [esp + 0x9c]
mov esi, dword [esp + 0x88]
lea eax, [esp + 0x24]
push edx
push eax
mov edi, dword [esp + 0x94]
sub esp, 0x10
mov ebp, dword [esp + 0xa8]
mov ecx, esp
mov ebx, dword [esp + 0xac]
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
call fcn.1003a2a0
add esp, 0x18
mov al, byte [esp + 0x98]
test al, al
je 0x1002eacf
cmp al, 3
je 0x1002eacf
mov edx, dword [esp + 0x70]
mov word [edx + 0x44], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1002eaff
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x70]
push ecx
sub esp, 0x10
mov edx, esp
push eax
mov dword [edx], esi
mov dword [edx + 4], edi
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebx
call fcn.1000c4c0
add esp, 0x18
mov ecx, dword [esp + 0x6c]
mov al, byte [ecx + 1]
test al, al
je 0x1002eb82
cmp al, 1
je 0x1002eb82
cmp al, 2
jne 0x1002ec46
mov edx, dword [esp + 0x68]
push 0
push 2
push edx
call fcn.10040da0
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x80]
add esp, 0xc
push eax
mov eax, dword [ecx]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, esp
mov dword [edx], esi
mov dword [edx + 4], edi
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebx
call fcn.1003a1b0
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
add esp, 0x24
mov cl, byte [eax + 2]
mov byte [edx + 0x40], cl
jmp 0x1002ec46
mov eax, dword [esp + 0x68]
push 0
push 2
push eax
call fcn.10040da0
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x80]
add esp, 0xc
push ecx
mov ecx, dword [edx]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebx
call fcn.1003a1b0
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x98]
add esp, 0x24
add edx, 0x10
push ecx
mov ecx, dword [edx]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov ecx, esp
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x98]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
call fcn.1003a1b0
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
add esp, 0x24
mov dl, byte [eax + 2]
mov byte [ecx + 0x40], dl
mov al, byte [eax + 2]
mov byte [ecx + 0x41], al
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
call fcn.1003a380
mov edx, dword [esp + 0x80]
add esp, 0x10
pop edi
pop esi
pop ebp
mov word [edx + 0x44], ax
pop ebx
add esp, 0x54
ret