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

Disassembly:
mov eax, dword [edx + 4]
mov edi, dword [edx + eax*4 + 0xc]
test edi, edi
je 0x1003dc3c
mov ebx, dword [ecx + 0x40]
test ebx, ebx
jne 0x1003d522
bsf esi, edi
mov ebx, eax
shl ebx, 5
or ebx, esi
btc edi, esi
mov esi, eax
mov eax, dword [esp + 0x28]
imul ebx, dword [ecx + eax + 0x58]
mov eax, dword [ecx + eax + 0x68]
mov dword [edx + esi*4 + 0xc], edi
add eax, edx
add ebx, eax
dec dword [edx + 8]
test ebx, ebx
mov esi, dword [esp + 0x14]
je 0x1003f6c7
mov eax, dword [esp + 0x10]
add dword [ecx + 0x2c], eax
push dword [esp + 0x1c]
call dword [0x1008beb0]
test ebx, ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
je 0x1003f6d1
cmp ecx, esi
cmova ecx, esi
push ecx
push eax
push ebx
call fcn.100785de
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov esi, ecx
and esi, 0xfffff
je 0x1003f6b3
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp dword [edi], eax
jne 0x1003fa2d
add eax, 0xc
mov dword [esp + 0x28], eax
push eax
call dword [0x1008be30]
shr esi, 0xc
lea eax, [esi + esi*2]
mov edx, dword [edi + eax*4 + 0x18]
test dl, 0x20
jne 0x1003fa42
test dl, 1
mov ecx, dword [esp + 0xc]
je 0x1003fa57
mov eax, edx
and edx, 0xfffff000
test al, 2
jne 0x1003dec8
mov dword [esp + 0x1c], ebx
mov edi, dword [edx]
mov esi, dword [edi + 8]
push esi
push 0xe5
push ecx
mov ebx, edx
call fcn.1007856c
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x2c], edi
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x14], ebx
add ecx, ebx
sub eax, ecx
lea ecx, [esi - 1]
test esi, ecx
setne dl
test esi, esi
sete cl
or cl, dl
mov dword [esp + 4], esi
jne 0x1003d4f4
mov ecx, esi
or ecx, 1
bsr ecx, ecx
shr eax, cl
mov ebx, dword [esp + 0x14]
mov esi, eax
shr esi, 5
cmp esi, dword [ebx + 4]
jb 0x1003dc9d
mov edx, dword [ebx + esi*4 + 0xc]
mov ecx, eax
xor edi, edi
inc edi
shl edi, cl
bt edx, eax
jb 0x1003fa6c
mov ecx, edi
or edx, edi
mov dword [ebx + esi*4 + 0xc], edx
mov eax, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 8], ecx
mov edx, dword [esp + 0x2c]
cmp ecx, dword [edx + 0x10]
mov ecx, edx
je 0x1003e0da
test eax, eax
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 4]
mov ebx, dword [esp + 0x1c]
je 0x1003d642
sub dword [edx + 0x2c], esi
push dword [esp + 0x28]
call dword [0x1008beb0]
test ebx, ebx
je 0x1003f6d1
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.100375ba
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp esi, 9
mov ebx, dword [esp + 0x14]
jb 0x1003fab8
cmp esi, 0x1f1
jae 0x1003df34
mov ecx, esi
shr ecx, 4
imul eax, dword [ecx*4 + 0x1007d174]
shr eax, 0x15
jmp 0x1003d30d
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], edx
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov dword [esp + 8], esi
shld esi, ecx, 0x17
mov eax, ecx
shl eax, 0x17
xor eax, ecx
mov edx, dword [ebx + 0xc]
xor esi, dword [esp + 8]
mov dword [esp + 0x30], esi
mov ecx, dword [ebx + 8]
mov dword [esp + 8], ecx
mov eax, dword [ecx]
cmp eax, dword [esp + 0x14]
je 0x1003d363
test eax, eax
je 0x1003e752
mov edi, dword [esp + 0x14]
cmp edi, eax
jae 0x1003dd6b
cmp dword [eax + 8], 0
je 0x1003e752
mov esi, eax
and esi, 0xfff00000
shr eax, 0xc
movzx eax, al
mov dword [esp + 8], eax
lea eax, [eax*4]
lea edi, [eax + eax*2]
mov dword [esp + 0x10], esi
or edi, esi
add edi, 0x10
mov eax, dword [ecx + 4]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
test eax, eax
je 0x1003e4af
xor esi, esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], edi
mov dword [esp + 0xc], esi
mov esi, ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x1003d6ea
mov edx, dword [ecx + 4]
test dl, 1
je 0x1003d6ea
mov edi, dword [ecx]
test edi, edi
je 0x1003d6d2
test byte [edi + 4], 1
jne 0x1003d6f6
mov ecx, eax
mov edi, dword [esp + 0x20]
cmp ecx, edi
seta dl
jbe 0x1003d6ee
mov eax, dword [ecx]
test eax, eax
jne 0x1003d6b2
jmp 0x1003e702
mov ecx, eax
jmp 0x1003d6d8
mov eax, dword [ecx + 4]
and eax, 0xfffffffe
jmp 0x1003d6e1
and edx, 0xfffffffe
mov dword [eax], edx
mov edx, eax
and edx, 0xfffffffe
mov dword [esp + 0x18], edx
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
and edi, 1
add edi, dword [esp + 0x18]
mov dword [ecx + 4], edi
test edx, edx
je 0x1003fae2
and byte [edx + 4], 0xfe
cmp dword [esi], eax
mov edi, dword [esp + 0x20]
jne 0x1003e695
mov dword [esi], ecx
jmp 0x1003d6d8
mov ebx, edx
mov edi, dword [esp + 0x18]
mov edx, ecx
xor eax, eax
cmp ecx, dword [esp + 8]
setb al
mov ecx, 0xffffffff
cmova eax, ecx
cmp eax, 0xffffffff
jne 0x1003d879
test edx, edx
je 0x1003eda0
mov ecx, dword [edx]
test ecx, ecx
je 0x1003eda0
mov eax, dword [ecx + 4]
test al, 1
je 0x1003d81f
mov ebx, edx
jmp 0x1003d7ea
mov esi, dword [ecx]
test esi, esi
je 0x1003d82b
test byte [esi + 4], 1
jne 0x1003d81b
or eax, 1
mov dword [ecx + 4], eax
mov esi, dword [edx + 4]
mov edi, esi
and edi, 0xfffffffe
je 0x1003f7ed
mov ecx, dword [edi]
test ecx, ecx
je 0x1003d850
mov eax, dword [ecx + 4]
test al, 1
jne 0x1003e8c9
or esi, 1
mov dword [edx + 4], esi
mov eax, dword [edi]
or eax, 1
mov dword [edx + 4], eax
mov dword [edi], edx
mov ecx, edi
mov edi, dword [esp + 0x18]
mov eax, ebx
cmp dword [ebx], edx
mov edx, ebx
jne 0x1003fb20
mov dword [edx], ecx
jmp 0x1003d7ea
test eax, eax
jne 0x1003d897
xor ecx, ecx
test edx, edx
je 0x1003d978
mov edi, dword [edx + 4]
mov eax, ebx
cmp edi, 1
jbe 0x1003d96e
jmp 0x1003d8a6
test edx, edx
je 0x1003fae2
mov edi, dword [edx + 4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov ecx, edi
and ecx, 0xfffffffe
je 0x1003d8c1
mov eax, dword [ecx]
test eax, eax
je 0x1003d8c1
test byte [eax + 4], 1
jne 0x1003d7e4
mov eax, dword [edx]
test eax, eax
je 0x1003fae2
mov ecx, dword [eax + 4]
test cl, 1
je 0x1003ebad
and ecx, 0xfffffffe
je 0x1003fadc
mov esi, dword [ecx]
test esi, esi
je fcn.1003d8f0
test byte [esi + 4], 1
jne 0x1003ee08
and edi, 1
or edi, ecx
mov dword [eax + 4], edi
or byte [ecx + 4], 1
mov ecx, dword [edx]
test ecx, ecx
je 0x1003fac1
mov eax, dword [ecx + 4]
and eax, 0xfffffffe
mov dword [edx], eax
mov eax, edx
and eax, 0xfffffffe
mov esi, dword [ecx + 4]
and esi, 1
or esi, eax
mov dword [ecx + 4], esi
mov edi, dword [edx + 4]
mov esi, edi
and esi, 0xfffffffe
je 0x1003f7f3
mov eax, dword [esi]
and eax, 0xfffffffe
and edi, 1
or edi, eax
mov dword [edx + 4], edi
mov dword [esi], edx
mov eax, dword [ecx + 4]
invalid
invalid