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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1009e090]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x9c]
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x34], ebp
xor ecx, ecx
mov word [esp + eax + 0x58], cx
add eax, 2
cmp eax, 0x1e
jbe 0x1003dd66
mov ebx, dword [esp + 0xa8]
test ebx, ebx
je 0x1003dd8e
movzx eax, word [esi + ecx*2]
inc ecx
inc word [esp + eax*2 + 0x58]
cmp ecx, ebx
jb 0x1003dd80
mov ecx, dword [edi]
lea eax, [esp + 0x72]
mov edi, 0xf
nop dword [eax]
cmp word [eax + 4], 0
jne 0x1003dddf
cmp word [eax + 2], 0
jne 0x1003ddde
cmp word [eax], 0
jne 0x1003ddd9
cmp word [eax - 2], 0
jne 0x1003ddd4
cmp word [eax - 4], 0
jne 0x1003ddcf
sub edi, 5
sub eax, 0xa
cmp edi, 1
jae 0x1003dda0
jmp 0x1003dddf
sub edi, 4
jmp 0x1003dddf
sub edi, 3
jmp 0x1003dddf
sub edi, 2
jmp 0x1003dddf
dec edi
cmp ecx, edi
mov eax, edi
cmovbe eax, ecx
test edi, edi
jne 0x1003de15
mov ecx, dword [edx]
mov dword [esp + 0x10], 0x140
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
add dword [edx], 4
mov ecx, dword [edx]
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
add dword [edx], 4
xor eax, eax
mov dword [ecx], 1
jmp 0x1003e174
mov edx, 1
mov dword [esp + 0x14], edx
cmp edi, edx
jbe 0x1003de33
cmp word [esp + edx*2 + 0x58], 0
jne 0x1003de2f
inc edx
cmp edx, edi
jb 0x1003de22
mov dword [esp + 0x14], edx
cmp eax, edx
mov ecx, edx
mov esi, 1
cmovae ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, esi
movzx eax, word [esp + ecx*2 + 0x58]
add esi, esi
sub esi, eax
js 0x1003e171
inc ecx
cmp ecx, 0xf
jbe 0x1003de45
test esi, esi
mov esi, dword [esp + 0xa0]
jle 0x1003de76
test esi, esi
je 0x1003e171
cmp edi, 1
jne 0x1003e171
xor eax, eax
mov ecx, 2
mov word [esp + 0x7a], ax
nop dword [eax]
nop word [eax + eax]
mov ax, word [esp + ecx + 0x58]
add ax, word [esp + ecx + 0x78]
mov word [esp + ecx + 0x7a], ax
add ecx, 2
cmp ecx, 0x1e
jb 0x1003de90
xor ecx, ecx
test ebx, ebx
je 0x1003ded6
mov edx, dword [esp + 0x40]
movzx eax, word [edx + ecx*2]
test ax, ax
je 0x1003decd
movzx eax, word [esp + eax*2 + 0x78]
mov word [ebp + eax*2], cx
movzx eax, word [edx + ecx*2]
inc word [esp + eax*2 + 0x78]
inc ecx
cmp ecx, ebx
jb 0x1003deb1
mov edx, dword [esp + 0x14]
mov eax, esi
sub eax, 0
je 0x1003df16
sub eax, 1
je 0x1003defc
mov dword [esp + 0x30], 0x10088780
mov dword [esp + 0x2c], 0x100887c0
mov dword [esp + 0x20], 0
jmp 0x1003df26
mov dword [esp + 0x30], 0x10088700
mov dword [esp + 0x2c], 0x10088740
mov dword [esp + 0x20], 0x101
jmp 0x1003df26
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], 0x14
mov ecx, dword [esp + 0x3c]
mov ebx, 1
xor ebp, ebp
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x18], ebp
mov eax, dword [ecx]
mov ecx, dword [esp + 0x28]
shl ebx, cl
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], eax
lea ecx, [eax - 1]
mov dword [esp + 0x4c], ecx
cmp esi, 1
jne 0x1003df66
cmp eax, 0x354
jmp 0x1003df70
cmp esi, 2
jne 0x1003df76
cmp eax, 0x250
ja 0x1003e16a
mov al, dl
sub al, byte [esp + 0x18]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x34]
movzx esi, word [eax]
mov ecx, esi
lea eax, [ecx + 1]
cmp eax, dword [esp + 0x20]
jae 0x1003df9e
mov byte [esp + 0x10], 0
mov word [esp + 0x12], si
jmp 0x1003dfc9
mov eax, dword [esp + 0x20]
cmp ecx, eax
jb 0x1003dfbd
sub ecx, eax
mov eax, dword [esp + 0x2c]
mov al, byte [eax + ecx*2]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x30]
mov ax, word [eax + ecx*2]
jmp 0x1003dfc4
mov byte [esp + 0x10], 0x60
xor eax, eax
mov word [esp + 0x12], ax
mov ecx, edx
mov esi, 1
sub ecx, dword [esp + 0x18]
mov edx, ebx
shl esi, cl
mov eax, ebp
mov ecx, dword [esp + 0x18]
shr eax, cl
mov ecx, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x50], edx
lea ebx, [esi*4]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x10]
sub ecx, ebx
mov dword [ecx], eax
sub edx, esi
jne 0x1003dff8
mov ecx, dword [esp + 0x14]
mov edx, 1
dec ecx
shl edx, cl
test ebp, edx
je 0x1003e016
shr edx, 1
test ebp, edx
jne 0x1003e010
test edx, edx
je 0x1003e023
lea eax, [edx - 1]
and ebp, eax
add ebp, edx
jmp 0x1003e025
xor ebp, ebp
mov edx, dword [esp + 0x14]
mov ecx, 0xffff
mov eax, dword [esp + 0x34]
add eax, 2
mov dword [esp + 0x34], eax
add word [esp + edx*2 + 0x58], cx
jne 0x1003e057
cmp edx, edi
je 0x1003e134
movzx eax, word [eax]
mov ecx, dword [esp + 0x40]
movzx edx, word [ecx + eax*2]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
cmp edx, ecx
jbe 0x1003df76
mov esi, dword [esp + 0x4c]
and esi, ebp
mov dword [esp + 0x54], esi
cmp esi, dword [esp + 0x44]
je 0x1003df76
mov eax, dword [esp + 0x18]
test eax, eax
mov ebx, dword [esp + 0x1c]
cmove eax, ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
lea ebx, [ebx + ecx*4]
mov dword [esp + 0x1c], ebx
mov ebx, edx
sub ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp edx, edi
jae 0x1003e0cc
mov esi, edx
lea edx, [esp + edx*2 + 0x58]
nop
movzx ecx, word [edx]
sub eax, ecx
test eax, eax
jle 0x1003e0c4
inc esi
inc ebx
add edx, 2
add eax, eax
cmp esi, edi
jb 0x1003e0b0
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x54]
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x38], ecx
cmp eax, 1
jne 0x1003e0f7
cmp ecx, 0x354
jmp 0x1003e102
cmp eax, 2
jne 0x1003e104
cmp ecx, 0x250
ja 0x1003e16a
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x44], esi
mov eax, dword [ecx]
mov byte [eax + esi*4], bl
mov eax, dword [ecx]
mov ebx, dword [esp + 0x28]
mov byte [eax + esi*4 + 1], bl
mov ecx, dword [ecx]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
mov word [ecx + esi*4 + 2], ax
jmp 0x1003df76
test ebp, ebp
je 0x1003e14f
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov byte [esp + 0x10], 0x40
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x10]
mov dword [ecx + ebp*4], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
shl eax, 2
add dword [ecx], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
xor eax, eax
jmp 0x1003e174
mov eax, 1
jmp 0x1003e174
or eax, 0xffffffff
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10040099
add esp, 0x8c
ret