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

Disassembly:
sub esp, 0x2d0
mov al, byte [0x100205d4]
push ebx
push ebp
push esi
mov dword [esp + 0x1c], ecx
push edi
mov byte [esp + 0x1dc], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1dd]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov ebp, dword [esp + 0x2e4]
stosw word es:[edi], ax
mov dword [esp + 0x28], ecx
xor edx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
stosb byte es:[edi], al
mov dword [esp + 0x30], ecx
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esp + 0x15c]
rep stosd dword es:[edi], eax
mov ecx, 0xe
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov dword [esp + 0x3c], edx
mov ecx, 0x10
lea edi, [esp + 0x11c]
mov dword [esp + 0x40], edx
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [esp + 0x44], edx
mov ecx, 0x18
lea edi, [esp + 0xbc]
cmp ebp, esi
mov byte [esp + 0x15], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x11], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x48], edx
rep stosd dword es:[edi], eax
je 0x10003014
mov edi, dword [esp + 0x2ec]
cmp edi, esi
je 0x10003014
cmp dword [esp + 0x2f8], esi
je 0x10003014
cmp dword [esp + 0x2fc], esi
je 0x10003014
mov ebx, dword [esp + 0x2e8]
push ebx
push ebp
call fcn.10001bf0
add esp, 8
test eax, eax
je 0x10003014
push ebx
push ebp
call fcn.10001c60
mov ecx, dword [esp + 0x2fc]
add esp, 8
cmp ecx, eax
jne 0x10003014
mov eax, dword [ebp]
push esi
push esi
push ebx
mov ecx, ebp
call dword [eax + 8]
mov eax, dword [esp + 0x2f0]
mov dword [esp + 0x1c], esi
cmp eax, esi
mov dword [esp + 0x24], esi
jle 0x10003014
mov esi, edi
mov dword [esp + 0x34], esi
mov al, byte [esp + 0x15]
test al, al
jne 0x1000299d
lea ecx, [esp + 0x11c]
push ecx
push ebx
push ebp
call fcn.10001cc0
add esp, 0xc
test eax, eax
je 0x10002fec
mov byte [esp + 0x15], 1
mov eax, dword [esi]
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x11c]
mov ecx, dword [eax]
push edx
add ecx, 0x6c
push ecx
mov ecx, edi
call fcn.10003120
test al, al
je 0x10002e1a
mov al, byte [esp + 0x13]
test al, al
jne 0x100029e4
lea edx, [esp + 0x38]
push edx
push ebx
push ebp
call fcn.10001d50
add esp, 0xc
test eax, eax
je 0x10002fec
mov byte [esp + 0x13], 1
mov ecx, dword [esi]
lea eax, [esp + 0x38]
push eax
mov edx, dword [ecx]
mov ecx, edi
add edx, 0x12c
push edx
call fcn.100033a0
test al, al
je 0x10002e1a
mov al, byte [esp + 0x17]
test al, al
jne 0x10002a41
lea eax, [esp + 0xbc]
push eax
push ebx
push ebp
call fcn.10001df0
add esp, 0xc
test eax, eax
je 0x10002fec
mov ecx, dword [esp + 0x118]
mov eax, 0x10
cmp ecx, eax
jbe 0x10002a3c
mov dword [esp + 0x118], eax
mov byte [esp + 0x17], 1
mov edx, dword [esi]
lea ecx, [esp + 0xbc]
push ecx
mov ecx, edi
mov eax, dword [edx]
add eax, 0x168
push eax
call fcn.10003470
test al, al
je 0x10002e1a
mov al, byte [esp + 0x14]
test al, al
jne 0x10002abf
push ebx
push ebp
call fcn.10001dd0
mov edi, eax
add esp, 8
test edi, edi
jl 0x10002fec
mov edx, dword [ebp]
add edi, 0x60
push 0
push edi
push ebx
mov ecx, ebp
call dword [edx + 8]
cmp eax, edi
jne 0x10002fec
mov eax, dword [ebp]
lea ecx, [esp + 0x15c]
push 0x80
push ecx
push ebx
mov ecx, ebp
call dword [eax + 0xc]
cmp eax, 0x80
jne 0x10002fec
mov edi, dword [esp + 0x20]
mov byte [esp + 0x14], 1
mov eax, dword [esi]
lea edx, [esp + 0x15c]
push edx
mov ecx, dword [eax]
add ecx, 0x288
push ecx
mov ecx, edi
call fcn.10003780
test al, al
je 0x10002e1a
mov al, byte [esp + 0x16]
test al, al
jne 0x10002c30
push ebx
push ebp
call fcn.10001e40
add esp, 8
mov dword [esp + 0x60], eax
test eax, eax
jl 0x10002fec
push ebx
push ebp
call fcn.100024c0
add esp, 8
mov dword [esp + 0x64], eax
test eax, eax
jl 0x10002fec
lea edx, [esp + 0x1dc]
push edx
push ebx
push ebp
call fcn.10001ed0
add esp, 0xc
test eax, eax
jne 0x10002b36
mov byte [esp + 0x1dc], al
lea edi, [esp + 0x1dc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1dc]
push ecx
push ebx
push ebp
call fcn.10002090
movsx eax, ax
xor esi, esi
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x5c], eax
jge 0x10002b81
mov dword [esp + 0x5c], esi
mov edx, dword [ebp]
push ebx
mov ecx, ebp
call dword [edx + 0x20]
cmp eax, esi
mov dword [esp + 0x54], eax
jl 0x10002fec
push ebx
push ebp
call fcn.10001da0
add esp, 8
cmp eax, esi
jle 0x10002fec
mov dword [esp + 0x58], eax
lea eax, [esp + 0x78]
push eax
push ebx
push ebp
call fcn.100024e0
add esp, 0xc
test eax, eax
je 0x10002fec
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx]
cmp dword [eax + 0x60], esi
je 0x10002c1c
cmp dword [eax + 0x64], esi
je 0x10002c1c
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x50]
push eax
push ecx
push 1
push ebx
push ebp
call fcn.10002590
add esp, 0x14
cmp eax, esi
jle 0x10002fec
lea edx, [esp + 0x18]
mov dword [esp + 0x18], esi
push edx
push eax
push ebx
push ebp
call fcn.10001470
add esp, 0x10
test eax, eax
jne 0x10002c0f
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x88], eax
jmp 0x10002c23
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
mov byte [esp + 0x16], 1
mov edx, dword [esi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
mov eax, dword [edx]
push eax
call fcn.10003030
test al, al
je 0x10002e1a
mov al, byte [esp + 0x10]
test al, al
jne 0x10002d0a
push ebx
push ebp
call fcn.10001e60
mov edx, dword [ebp]
add esp, 8
mov edi, eax
mov ecx, ebp
push 0
push edi
push ebx
call dword [edx + 8]
cmp eax, edi
jne 0x10002fec
push ebx
push ebp
call fcn.10001da0
add esp, 8
test eax, eax
jle 0x10002fec
mov ecx, dword [esp + 0x3a]
lea eax, [esp + 0x1c]
and ecx, 0xffff
push eax
push ecx
call fcn.100011f0
add esp, 8
test eax, eax
je 0x10002fec
push ebx
push ebp
call fcn.10001e60
mov edx, dword [ebp]
add esp, 8
mov edi, eax
mov ecx, ebp
push 0
push edi
push ebx
call dword [edx + 8]
cmp eax, edi
jne 0x10002fec
mov eax, dword [esp + 0x3a]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp]
and eax, 0xffff
lea eax, [eax + eax*4]
shl eax, 3
push eax
push ecx
push ebx
mov ecx, ebp
call dword [edx + 0xc]
mov edx, dword [esp + 0x3a]
mov ecx, edx
and ecx, 0xffff
lea ecx, [ecx + ecx*4]
shl ecx, 3
cmp eax, ecx
jne 0x10002fec
mov edi, dword [esp + 0x20]
mov byte [esp + 0x10], 1
jmp 0x10002d0e
mov edx, dword [esp + 0x3a]
mov eax, dword [esi]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
mov ecx, edi
call fcn.100037e0
test al, al
je 0x10002e1a
mov eax, dword [esi]
mov ecx, dword [eax + 0x10c]
test ecx, ecx
je 0x10002e3e
mov al, byte [esp + 0x11]
test al, al
jne 0x10002df5
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x50]
push ecx
push edx
push 1
push ebx
push ebp
call fcn.10002590
mov edi, eax
add esp, 0x14
test edi, edi
jle 0x10003000
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push edi
push ebx
push ebp
call fcn.10001470
add esp, 0x10
test eax, eax
je 0x10003000
mov edx, dword [ebp]
push 0
push edi
push ebx
mov ecx, ebp
call dword [edx + 8]
cmp eax, edi
jne 0x10003000
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
push ecx
push edx
mov dword [esp + 0x38], eax
call fcn.10001250
add esp, 8
test eax, eax
je 0x10003000
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
lea edi, [eax + eax*4]
mov eax, dword [ebp]
shl edi, 2
push edi
push ecx
push ebx
mov ecx, ebp
call dword [eax + 0xc]
cmp eax, edi
jne 0x10003000
mov edi, dword [esp + 0x20]
mov byte [esp + 0x11], 1
mov eax, dword [esi]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [eax + 0x110]
mov eax, dword [eax + 0x10c]
push ecx
push edx
push eax
mov ecx, edi
call fcn.10003970
test al, al
jne 0x10002e3e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2f0]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], esi
jl 0x10002976
jmp 0x10002fec
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2ec]
mov edx, dword [ecx + esi*4]
mov eax, dword [edx + 0x114]
test eax, eax
je 0x10002ea3
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
call fcn.10001500
add esp, 0xc
test eax, eax
je 0x10002fec
mov ecx, dword [esp + 0x2ec]
mov edx, dword [esp + 0x28]
push edx
mov byte [esp + 0x16], 1
mov eax, dword [ecx + esi*4]
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, edi
mov edx, dword [eax + 0x118]
mov eax, dword [eax + 0x114]
push edx
push eax
call fcn.10003a30
test al, al
je 0x10002ff3
mov ecx, dword [esp + 0x2ec]
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x10002f5b
mov ecx, dword [eax + 0x120]
test ecx, ecx
je 0x10002f5b
lea edx, [esp + 0x8c]
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x8c]
push edx
push ebx
rep stosd dword es:[edi], eax
push ebp
call fcn.10001890
add esp, 0xc
test eax, eax
je 0x10002fe5
mov edi, dword [esp + 0x2ec]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x8c]
mov ecx, dword [edi + esi*4]
push eax
mov edx, dword [ecx + 0x11c]
mov ecx, ebx
push edx
call fcn.10003bf0
test al, al
je 0x10002fd5
mov eax, dword [edi + esi*4]
lea ecx, [esp + 0xb4]
push ecx
mov ecx, ebx
mov edx, dword [eax + 0x124]
mov eax, dword [eax + 0x120]
push edx
push eax
call fcn.10003d30
test al, al
je 0x10002fd5
lea ecx, [esp + 0x8c]
push ecx
call fcn.100013e0
add esp, 4
cmp byte [esp + 0x12], 1
je 0x10002f69
cmp byte [esp + 0x11], 1
jne 0x10002f76
lea edx, [esp + 0x28]
push edx
call fcn.10001300
add esp, 4
cmp byte [esp + 0x10], 1
jne 0x10002f8a
mov eax, dword [esp + 0x1c]
push eax
call fcn.10001230
add esp, 4
mov ecx, dword [esp + 0x2ec]
xor eax, eax
mov edi, dword [ecx + esi*4]
or ecx, 0xffffffff
add edi, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x24]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x2f8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2fc]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
add esp, 0x2d0
ret 0x1c
lea edx, [esp + 0x8c]
push edx
call fcn.100013e0
add esp, 4
cmp byte [esp + 0x12], 1
je 0x10002ff3
cmp byte [esp + 0x11], 1
jne 0x10003000
lea eax, [esp + 0x28]
push eax
call fcn.10001300
add esp, 4
cmp byte [esp + 0x10], 1
jne 0x10003014
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10001230
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2d0
ret 0x1c