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

Disassembly:
sub esp, 0x6ac
mov edx, dword [esp + 0x6b0]
mov eax, dword [edx + 0x180]
mov ecx, dword [edx + 0x190]
push ebx
mov ebx, dword [ecx + eax*4]
push ebp
mov ebp, dword [esp + 0x6bc]
push esi
mov esi, dword [ebx + 0x14]
push edi
xor edi, edi
lea ecx, [esi + esi]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
jle 0x1002da60
cmp dword [ebp + eax*4], edi
jne 0x1002da60
inc eax
cmp eax, ecx
jl 0x1002da55
cmp eax, ecx
jne 0x1002daae
and dword [ebx + 0x18], 0xffffffef
push 0x600
lea edx, [ebx + 0x160]
push edi
push edx
call fcn.1004c5f0
add esp, 0xc
push 0x4c
lea eax, [ebx + 0x20]
push edi
push eax
mov dword [ebx + 0x84], edi
call fcn.1004c5f0
add esp, 0xc
test byte [ebx + 0x18], 8
je 0x1002e192
mov esi, ebx
call fcn.1003aa10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6ac
ret
mov ecx, dword [ebx + 0x18]
mov eax, ecx
shr eax, 0x12
and eax, 0x1f
add eax, 4
shl eax, 8
cmp eax, 0x1b00
mov dword [esp + 0x54], eax
jle 0x1002dad2
mov dword [esp + 0x54], 0x1b00
test dword [edx + 0x14], 0x10000
je 0x1002daf2
test cl, 0x10
je 0x1002daea
mov dword [esp + 0x38], 1
jmp 0x1002daf2
mov dword [esp + 0x40], 1
push 0x600
lea ecx, [esp + 0xbc]
push 0
push ecx
call fcn.1004c5f0
add esp, 0xc
lea edi, [esi*8]
push edi
call fcn.100492c7
add esp, 4
mov ebp, eax
push edi
mov dword [esp + 0x28], ebp
call fcn.100492c7
add esp, 4
push edi
mov dword [esp + 0x2c], eax
call fcn.100492c7
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x9c]
add esp, 4
cmp eax, 1
jle 0x1002dc3c
test byte [ebx + 0x18], 8
je 0x1002dc3c
push 0x60
lea edx, [esp + 0x5c]
push 0
push edx
call fcn.1004c5f0
add esp, 0xc
cmp esi, 0x800
mov dword [esp + 0x5c], 2
mov dword [esp + 0x58], 0x12
mov eax, 0x800
jg 0x1002db82
mov eax, esi
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x6cc]
push ebp
push eax
lea ebx, [esp + 0x68]
call fcn.1002b960
mov ecx, ebx
call fcn.1002cb70
mov ecx, dword [esp + 0x6d4]
push 1
push esi
push ebp
push ecx
call fcn.1002b960
push 0x60
mov edx, ebx
push 0
push edx
call fcn.1004c5f0
add esp, 0x2c
cmp esi, 0x800
mov dword [esp + 0x5c], 2
mov dword [esp + 0x58], 0x11
mov eax, 0x800
jg 0x1002dbdd
mov eax, esi
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x30]
push eax
push ebp
lea ebx, [esp + 0x68]
call fcn.1002b960
push 1
push esi
mov esi, dword [esp + 0x40]
push esi
push ebp
call fcn.1002b960
push edi
call fcn.100492c7
mov ecx, dword [esp + 0x6e8]
add esp, 0x24
push edi
mov ebx, eax
push ecx
push ebx
mov dword [esp + 0x28], ebx
call fcn.1004c770
mov eax, esi
mov esi, dword [esp + 0x24]
add esp, 0xc
mov ecx, ebx
call fcn.1002d7b0
mov dword [esp + 0x6c8], 1
mov ebx, esi
xor ecx, ecx
jmp 0x1002dc4c
xor ecx, ecx
cmp dword [esp + 0x6c8], ecx
jne 0x1002dc4c
cmp eax, 7
jl 0x1002dc58
mov dword [ebx + 0xa4], ecx
mov dword [ebx + 0xa0], ecx
cmp dword [ebx + 0x9c], ecx
mov dword [esp + 0x30], ecx
jle 0x1002dff2
jmp 0x1002dc70
cmp dword [esp + 0x30], 0
mov ecx, dword [esp + 0x18]
jne 0x1002dce1
mov eax, dword [ecx + 0xa0]
mov dword [esp + 0x3c], eax
imul eax, eax, 0x13
add eax, dword [ecx + 0x7c0]
lea ecx, [eax + 2]
mov dword [esp + 0x44], eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1002dc98
sub ecx, esi
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x38], 0
jne 0x1002dd38
cmp byte [eax], 0
je 0x1002dcbc
cmp dword [esp + 0x40], 0
je 0x1002dd38
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1002dccb
mov eax, dword [esp + 0x6c4]
mov ecx, dword [esp + 0x14]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push eax
mov eax, dword [esp + 0x2c]
push eax
jmp 0x1002dda3
mov edx, dword [ecx + 0xa4]
test edx, edx
jne 0x1002dcef
xor eax, eax
jmp 0x1002dcfa
lea eax, [edx - 1]
and eax, dword [ecx + 0xa0]
or eax, edx
mov dword [esp + 0x3c], eax
cmp eax, dword [ecx + 0xa0]
jne 0x1002dc85
test edx, edx
je 0x1002dd26
mov eax, dword [ecx + 0x98]
add edx, edx
dec eax
and eax, edx
mov dword [ecx + 0xa4], eax
mov edx, ecx
jmp 0x1002dfe2
mov eax, 1
mov dword [ecx + 0xa4], eax
mov edx, ecx
jmp 0x1002dfe2
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
test ebp, ebp
jne 0x1002dd96
lea edi, [ebx*8]
push edi
mov esi, ebx
call fcn.100492c7
mov ebp, eax
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x2c], ebp
test eax, eax
jne 0x1002dd6b
mov eax, dword [esp + 0x6c4]
push edi
push eax
push ebp
call fcn.1004c770
add esp, 0xc
test ebx, ebx
je 0x1002dd96
lea eax, [ebp + 4]
lea ecx, [ecx]
mov edx, dword [eax]
sub dword [eax - 4], edx
mov ecx, dword [eax - 4]
sar ecx, 1
add ecx, edx
dec esi
mov dword [eax], ecx
add eax, 8
test esi, esi
jne 0x1002dd80
mov ecx, dword [esp + 0x24]
add ebx, ebx
add ebx, ebx
add ebx, ebx
push ebx
push ebp
push ecx
call fcn.1004c770
add esp, 0xc
push 0x600
lea edx, [esp + 0xbc]
push 0
push edx
call fcn.1004c5f0
xor ebp, ebp
add esp, 0xc
cmp dword [esp + 0x20], ebp
jle 0x1002df20
push 0x60
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.1004c5f0
mov eax, dword [esp + 0x50]
movsx ecx, byte [eax + 1]
add eax, 2
movsx eax, byte [eax + ebp]
add esp, 0xc
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
test eax, eax
jge 0x1002de0c
mov edx, dword [esp + 0x18]
test byte [edx + 0x18], 0x20
jne 0x1002de0c
mov dword [esp + 0x58], 0xfffffffd
mov edx, dword [esp + 0x14]
cmp edx, 0x800
jle 0x1002de1d
mov edx, 0x800
mov eax, ebp
not eax
push 0xffffffffffffffff
and eax, 1
mov eax, dword [esp + eax*4 + 0x28]
mov ecx, ebp
push edx
and ecx, 1
mov ecx, dword [esp + ecx*4 + 0x2c]
push eax
push ecx
lea ebx, [esp + 0x68]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
call fcn.1002b960
add esp, 0x10
test ebp, ebp
je 0x1002deb0
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
jmp 0x1002deb9
lea ecx, [esp + 0x58]
call fcn.1002cb70
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x18]
lea edi, [ebp + ebp*2]
shl edi, 5
lea edi, [esp + edi + 0xb8]
mov ecx, 0x18
lea esi, [esp + 0x58]
and eax, 0x7c0000
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0x58]
cmp eax, 0x400000
jb 0x1002df04
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push 1
push ecx
push edx
push eax
call fcn.1002b960
add esp, 0x10
jmp 0x1002df15
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
call fcn.1002c420
add esp, 4
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x1002ddce
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
mov ecx, ebp
and ecx, 1
mov ecx, dword [esp + ecx*4 + 0x24]
push edx
add eax, eax
call fcn.1003cfb0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
jne 0x1002df57
cmp dword [esp + 0x20], 0
je 0x1002df57
sar dword [esp + 0x20], 1
mov eax, dword [esp + 0x44]
jmp 0x1002dca5
cmp ebx, dword [esp + 0x48]
jae 0x1002dfad
mov eax, dword [esp + 0x14]
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x38]
and ebp, 1
mov edx, dword [esp + ebp*4 + 0x28]
push edx
push eax
call fcn.1004c770
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
lea edi, [eax + 0x160]
mov ecx, 0x180
lea esi, [esp + 0xc4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov dword [eax + 0x84], ecx
mov dword [eax + 0xa0], edx
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, eax
inc eax
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x1002dfe2
mov ecx, dword [edx + 0xa4]
test ecx, ecx
je 0x1002dfd7
mov eax, dword [edx + 0x98]
dec eax
add ecx, ecx
and eax, ecx
jmp 0x1002dfdc
mov eax, 1
mov dword [edx + 0xa4], eax
mov eax, dword [esp + 0x30]
cmp eax, dword [edx + 0x9c]
jl 0x1002dc70
cmp dword [esp + 0x38], 0
mov edi, dword [esp + 0x18]
jne 0x1002e01f
mov ecx, dword [edi + 0xa0]
mov edx, dword [edi + 0x7c0]
imul ecx, ecx, 0x13
cmp byte [ecx + edx], 0
je 0x1002e019
cmp dword [esp + 0x40], 0
je 0x1002e01f
and dword [edi + 0x18], 0xffffffef
jmp 0x1002e023
or dword [edi + 0x18], 0x10
mov ebx, dword [esp + 0x6c0]
mov ebp, 3
cmp dword [ebx + 0x18], ebp
jle 0x1002e0c9
test byte [edi + 0x18], 0x10
je 0x1002e076
mov esi, dword [esp + 0x6cc]
mov eax, dword [esp + 0x2c]
push esi
push eax
push ebx
call fcn.1002d4f0
add esp, 0xc
test esi, esi
je 0x1002e0f3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x6c4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
push edx
jmp 0x1002e0eb
cmp dword [esp + 0x1c], 0
je 0x1002e0b1
mov esi, dword [esp + 0x6cc]
mov eax, dword [esp + 0x1c]
push esi
push eax
push ebx
call fcn.1002d4f0
add esp, 0xc
test esi, esi
je 0x1002e0f3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
push edx
jmp 0x1002e0eb
mov eax, dword [esp + 0x6cc]
mov ecx, dword [esp + 0x6c4]
push eax
push ecx
push ebx
call fcn.1002d4f0
jmp 0x1002e0f0
cmp dword [esp + 0x6cc], 0
je 0x1002e0f3
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x6c8]
push edx
push eax
call fcn.1004c770
add esp, 0xc
cmp dword [ebx + 0x18], ebp
jg 0x1002e11d
cmp dword [esp + 0x6c8], 0
jne 0x1002e11d
mov ecx, dword [edi + 0xa0]
mov edx, dword [edi + 0x7c0]
imul ecx, ecx, 0x13
movsx eax, byte [ecx + edx]
cmp dword [edi + 0x8c], eax
je 0x1002e149
mov ecx, dword [edi + 0xa0]
mov edx, dword [edi + 0x7c0]
imul ecx, ecx, 0x13
movsx eax, byte [ecx + edx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
push ecx
push edx
push edi
mov dword [edi + 0x8c], eax
call fcn.1003c020
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1002e15a
push eax
call fcn.100491ea
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1002e16b
push eax
call fcn.100491ea
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call fcn.100491ea
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call fcn.100491ea
mov edx, dword [esp + 0x38]
add esp, 4
push edx
call fcn.100491ea
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6ac
ret