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

Disassembly:
push 0xffffffffffffffff
push 0x1006d0e6
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x1008b2d0]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008b2d0]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov eax, dword [esp + 0x444]
mov esi, ecx
push 0xffffffffffffffff
xor edi, edi
xor ecx, ecx
push edi
mov word [esp + 0xa4], cx
mov ebx, 7
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xb8], edi
call fcn.1001854a
mov dword [esp + 0x43c], edi
cmp dword [esp + 0xac], edi
jne 0x10040027
lea edx, [esp + 0x80]
push edx
call fcn.10036500
add esp, 4
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [esp + 0x6c], cx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x448], 1
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], edi
call fcn.1001854a
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x440], 2
call fcn.1001e3d7
mov ebp, 8
cmp dword [esp + 0x78], ebp
jb 0x1003fff6
mov eax, dword [esp + 0x64]
push eax
call fcn.1004dca6
add esp, 4
xor ecx, ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], edi
mov word [esp + 0x64], cx
mov byte [esp + 0x43c], cl
cmp dword [esp + 0x94], ebp
jb 0x1004002c
mov edx, dword [esp + 0x80]
push edx
call fcn.1004dca6
add esp, 4
jmp 0x1004002c
mov ebp, 8
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xa0]
call fcn.100445d0
mov ecx, dword [esi]
add ecx, 4
push eax
mov byte [esp + 0x440], 3
call fcn.1001e3d7
mov byte [esp + 0x43c], 0
cmp dword [esp + 0x94], ebp
jb 0x10040074
mov ecx, dword [esp + 0x80]
push ecx
call fcn.1004dca6
add esp, 4
mov eax, dword [esi]
push 0xffffffffffffffff
add eax, 4
push edi
xor edx, edx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov word [esp + 0x54], dx
call fcn.1001854a
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x440], 4
call fcn.100335d0
add esp, 4
mov ebx, eax
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x440], 5
call fcn.100444b0
push ebx
push eax
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x448], 6
call fcn.10047310
add esp, 0xc
mov ecx, dword [esi]
add ecx, 0x20
push eax
mov byte [esp + 0x440], 7
call fcn.1001e3d7
cmp dword [esp + 0x78], ebp
jb 0x10040105
mov eax, dword [esp + 0x64]
push eax
call fcn.1004dca6
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], edi
mov word [esp + 0x64], cx
cmp dword [esp + 0x94], ebp
jb 0x10040132
mov edx, dword [esp + 0x80]
push edx
call fcn.1004dca6
add esp, 4
xor eax, eax
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
mov word [esp + 0x80], ax
mov byte [esp + 0x43c], 4
cmp dword [esp + 0x40], ebp
jb 0x10040165
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.1004dca6
add esp, 4
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
xor dl, dl
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x17], dl
mov ebx, ecx
cmp eax, ebp
jae 0x10040185
lea ebx, [esp + 0x48]
mov esi, dword [esp + 0x58]
cmp eax, ebp
lea ebx, [ebx + esi*2]
mov ebp, ecx
jae 0x10040196
lea ebp, [esp + 0x48]
mov esi, ebp
cmp ebp, ebx
je 0x10040258
cmp word [esi], 0x25
je 0x100401b2
add esi, 2
cmp esi, ebx
jne 0x100401a0
jmp 0x10040258
cmp esi, ebx
je 0x10040258
lea ebp, [esi + 2]
cmp ebp, ebx
je 0x10040258
cmp word [ebp], 0x25
jne 0x100401d1
add ebp, 2
jmp 0x1004024c
inc dword [esp + 0x18]
test dl, dl
jne 0x1004024c
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push ebx
push eax
mov dword [esp + 0x28], ebp
call fcn.100378e0
add esp, 0xc
test al, al
je 0x1004024c
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
mov byte [esp + 0x17], 1
jae 0x10040208
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov edi, esi
sar ecx, 1
sub edi, eax
push ecx
sar edi, 1
push edi
lea ecx, [esp + 0x50]
call fcn.1001634b
mov eax, dword [esp + 0x5c]
dec dword [esp + 0x18]
mov ebx, dword [esp + 0x48]
mov ebp, ebx
cmp eax, 8
jae 0x10040238
lea ebp, [esp + 0x48]
lea ebp, [ebp + edi*2]
cmp eax, 8
jae 0x10040245
lea ebx, [esp + 0x48]
mov edx, dword [esp + 0x58]
lea ebx, [ebx + edx*2]
mov dl, byte [esp + 0x17]
cmp ebp, ebx
jne 0x10040196
xor ebp, ebp
cmp dword [esp + 0x18], ebp
jbe 0x10040455
test dl, dl
je 0x10040397
mov al, byte [0x1008ecdc]
movzx ecx, al
push ecx
sub esp, 0xc8
movzx edx, al
mov ebx, esp
mov dword [esp + 0xe8], esp
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x104], esp
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x13c]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebp
push edx
mov word [ecx], ax
call fcn.1001854a
mov eax, dword [esp + 0x114]
sub esp, 0xa8
mov esi, esp
mov dword [esp + 0x1b8], esp
push 1
push 2
lea ecx, [esi + 0x10]
mov byte [esp + 0x5d8], 8
mov dword [esi], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
call fcn.10036530
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 4]
lea eax, [edx + esi + 0x10]
mov ecx, 0x30
mov word [eax + 0x40], cx
push ebx
mov byte [esp + 0x5d4], 4
call fcn.100391f0
sub esp, 0x11c
mov esi, esp
mov dword [esp + 0x2d8], esp
mov bl, 9
push 1
mov ecx, esi
mov byte [esp + 0x6f4], bl
mov dword [esp + 0x2dc], esi
call fcn.1003f210
push 1
push 2
lea ecx, [esi + 0x150]
mov byte [esp + 0x6f8], 0xa
call fcn.10036530
lea edx, [esp + 0x434]
mov byte [esp + 0x6f0], bl
push edx
mov byte [esp + 0x6f4], 4
call fcn.1003f800
add esp, 0x2b8
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
add ecx, 0x3c
mov byte [esp + 0x440], 0xb
call fcn.1003fe00
lea ecx, [esp + 0x180]
mov byte [esp + 0x43c], 4
call fcn.1003ce90
jmp 0x1004056d
movzx ecx, byte [0x1008ecdc]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x70]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebp
push eax
mov word [ecx], dx
call fcn.1001854a
sub esp, 0x1e8
mov esi, esp
mov dword [esp + 0x224], esp
mov bl, 0xc
push 1
mov ecx, esi
mov byte [esp + 0x648], bl
mov dword [esp + 0x228], esi
call fcn.1003f210
push 1
push 2
lea ecx, [esi + 0x150]
mov byte [esp + 0x64c], 0xd
call fcn.10036530
lea ecx, [esp + 0x388]
mov byte [esp + 0x644], bl
push ecx
mov byte [esp + 0x648], 4
call fcn.1003fa50
add esp, 0x20c
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
push eax
add ecx, 0x3c
mov byte [esp + 0x440], 0xe
call fcn.1003fe80
lea ecx, [esp + 0x180]
mov byte [esp + 0x43c], 4
call fcn.1003cf60
jmp 0x1004056d
test dl, dl
je 0x10040514
movzx eax, byte [0x1008ecdc]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x70]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebp
push eax
mov word [ecx], dx
call fcn.1001854a
mov ecx, dword [esp + 0x48]
sub esp, 0xa8
mov esi, esp
mov dword [esp + 0xe4], esp
push 1
mov dword [esi + 8], ecx
push 2
lea ecx, [esi + 0x10]
mov byte [esp + 0x50c], 0xf
mov dword [esi], edi
mov dword [esi + 0xc], ebp
call fcn.10036530
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 4]
lea esi, [eax + esi + 0x10]
mov ecx, 0x30
lea edx, [esp + 0x180]
mov word [esi + 0x40], cx
push edx
mov byte [esp + 0x508], 4
call fcn.100391f0
add esp, 0xcc
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
add ecx, 0x3c
mov byte [esp + 0x440], 0x10
call fcn.1003d2f0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x43c], 4
call fcn.10038f40
jmp 0x1004056d
push 0xffffffffffffffff
xor ecx, ecx
push ebp
lea edx, [esp + 0x50]
mov word [esp + 0x6c], cx
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebp
call fcn.1001854a
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
lea eax, [esp + 0x64]
push eax
add ecx, 0x3c
mov byte [esp + 0x440], 0x11
call fcn.10038990
cmp dword [esp + 0x78], 8
jb 0x1004056d
mov edx, dword [esp + 0x64]
push edx
call fcn.1004dca6
add esp, 4
mov esi, 8
cmp dword [esp + 0x5c], esi
jb 0x10040585
mov eax, dword [esp + 0x48]
push eax
call fcn.1004dca6
add esp, 4
xor ecx, ecx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], cx
cmp dword [esp + 0xb0], esi
jb 0x100405b1
mov edx, dword [esp + 0x9c]
push edx
call fcn.1004dca6
add esp, 4
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.1004c01d
add esp, 0x42c
ret 4