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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, dword [esp + 0x68]
mov eax, dword [esi]
mov ecx, dword [esi + 0x88]
mov ebp, dword [eax + 0x54]
mov edx, dword [ebp + 0x9c]
push edi
mov edi, dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x74]
push ecx
push edx
push eax
lea ebx, [esi + 0xc]
call fcn.10009bb0
add esp, 0xc
test eax, eax
jne 0x1003dd66
mov eax, dword [esp + 0x2c]
mov cl, byte [eax + 8]
test cl, cl
mov byte [esi + 0x8c], cl
je 0x1003d6a2
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x90], ecx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x94], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x98], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x9c], edx
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0xa0], ecx
mov edx, dword [eax + 0x20]
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
mov dword [esp + 0x48], ecx
mov dword [esi + 0xa4], edx
mov edx, dword [esi + 0x98]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call fcn.10041360
lea edx, [esp + 0x48]
push edx
lea eax, [esi + 0xa0]
push eax
call fcn.10008020
add esp, 0xc
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x48]
cmp eax, 0x636f6d70
mov dword [ebp + 0x3c], ecx
je 0x1003daa4
cmp eax, 0x6f75746c
je 0x1003d7ef
mov dword [esp + 0x6c], 7
cmp dword [esp + 0x7c], 0
jne 0x1003dd62
mov eax, dword [ebp + 0x2c]
mov ebx, dword [esp + 0x1c]
sub eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebx + 8]
sub ecx, dword [ebp + 0x24]
push edx
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call fcn.10006bc0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0xc]
push eax
push ecx
call fcn.10006bc0
add esp, 0x10
cmp byte [esi + 0x8c], 0
mov dword [esp + 0x38], eax
je 0x1003d740
lea ebx, [esi + 0x90]
lea edx, [edi + 0x14]
push ebx
push edx
call fcn.10008080
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.10008020
mov ebx, dword [esp + 0x2c]
add esp, 0x10
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x1003d75b
push 0
neg eax
push eax
lea ecx, [edi + 0x14]
push ecx
call fcn.10007fe0
add esp, 0xc
lea edx, [esp + 0x44]
push edx
lea eax, [edi + 0x14]
push eax
call fcn.10007f50
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
and dword [esp + 0x50], 0xffffffc0
add eax, 0x3f
and eax, 0xffffffc0
and edx, 0xffffffc0
mov dword [esp + 0x54], eax
sub eax, edx
add ecx, 0x3f
and ecx, 0xffffffc0
mov dword [ebp + 0x18], eax
mov eax, ecx
sub eax, dword [esp + 0x50]
mov dword [esp + 0x4c], edx
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0x20], edx
add edx, eax
mov eax, dword [ebp + 4]
and edx, 0xffffffc0
mov dword [ebp + 0x2c], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x58], ecx
mov dword [ebp + 0x24], ecx
add ecx, edx
and ecx, 0xffffffc0
add esp, 8
mov dword [ebp + 0x30], ecx
test byte [eax + 8], 4
jne 0x1003dcd1
cmp dword [ebp + 0x28], 0
je 0x1003dcf2
mov ecx, dword [esi + 0xb0]
sub ecx, dword [esi + 0xa8]
mov dword [ebp + 0x28], ecx
jmp 0x1003dcf2
cmp byte [esi + 0x8c], 0
je 0x1003d812
mov edx, dword [esi + 0xa4]
mov eax, dword [esi + 0xa0]
push edx
push eax
lea ecx, [ebp + 0x6c]
push ecx
call fcn.10007fe0
add esp, 0xc
movsx eax, word [ebp + 0x6e]
lea ecx, [eax + 4]
test ecx, ecx
mov dword [esp + 0x6c], ecx
je 0x1003d834
movsx edx, word [edi + 0x3a]
movsx ecx, word [edi + 0x16]
add edx, eax
lea edx, [ecx + edx + 4]
cmp edx, dword [edi + 4]
jg 0x1003d859
movzx eax, word [ebp + 0x6c]
test ax, ax
je 0x1003d9f9
movsx ecx, word [edi + 0x38]
movsx edx, word [edi + 0x14]
movsx eax, ax
add ecx, edx
add ecx, eax
cmp ecx, dword [edi + 8]
jle 0x1003d9f9
movsx ecx, word [ebp + 0x6c]
mov edx, dword [esp + 0x6c]
push ecx
push edx
push edi
call fcn.1000adc0
add esp, 0xc
test eax, eax
mov dword [esp + 0x6c], eax
jne 0x1003dd66
movsx eax, word [ebp + 0x6e]
mov ecx, dword [ebp + 0x70]
mov edx, dword [edi + 0x3c]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
push edx
call fcn.10056680
movsx eax, word [ebp + 0x6c]
mov ecx, dword [ebp + 0x78]
mov edx, dword [edi + 0x44]
add eax, eax
push eax
push ecx
push edx
call fcn.10056680
movsx eax, word [ebp + 0x6e]
mov ecx, dword [ebp + 0x74]
mov edx, dword [edi + 0x40]
push eax
push ecx
push edx
call fcn.10056680
mov ax, word [ebp + 0x6e]
mov word [edi + 0x3a], ax
mov cx, word [ebp + 0x6c]
mov word [edi + 0x38], cx
mov edx, dword [ebx + 8]
mov dword [esi + 0xa8], edx
mov eax, dword [ebx + 0x10]
mov dword [esi + 0xac], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 0x28]
push ecx
push edx
call fcn.10006bc0
add eax, dword [ebx + 8]
add esp, 0x2c
mov dword [esi + 0xb0], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0xb4], eax
cmp word [ebp + 0x6e], 0
je 0x1003d6cf
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
lea eax, [edi + 0x38]
push eax
push ebx
call edx
mov eax, dword [esp + 0x7c]
add esp, 0xc
cmp dword [eax + 0x14], 1
je 0x1003da4e
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x44]
lea eax, [edx + edx*2]
shl eax, 4
cmp edx, 1
lea eax, [eax + ecx - 0x30]
mov dword [esp + 0x20], eax
jle 0x1003da06
test byte [ebx + 0x68], 4
jne 0x1003da06
mov ebx, dword [ecx + 4]
mov edx, dword [esi + 0xb0]
sub edx, dword [eax + 4]
mov ecx, dword [ecx + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], ecx
sub ecx, ebx
add eax, edx
cmp ebx, 0x18
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
jge 0x1003d978
sub ecx, 8
cmp edx, 0x18
jge 0x1003d980
add eax, 8
lea edx, [ecx + 0x20]
and edx, 0xffffffc0
lea ebx, [eax + 0x20]
and ebx, 0xffffffc0
cmp edx, dword [esp + 0x28]
mov dword [esi + 0xa8], edx
mov dword [esp + 0x24], ebx
mov dword [esi + 0xb0], ebx
jl 0x1003d9b2
cmp dword [esp + 0x18], 0
jle 0x1003d9b2
add edx, 0xffffffc0
mov dword [esi + 0xa8], edx
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
cmp edx, dword [ebx + 8]
jg 0x1003d9cf
cmp dword [esp + 0x14], 0
jle 0x1003d9cf
add edx, 0x40
mov dword [esi + 0xb0], edx
mov edx, dword [esi + 0xa8]
sub edx, ecx
mov dword [ebp + 0x90], edx
mov ecx, dword [esi + 0xb0]
sub ecx, eax
push edi
mov dword [ebp + 0x94], ecx
call fcn.10006ef0
add esp, 4
jmp 0x1003d6cf
mov dword [esp + 0x6c], 0
jmp 0x1003d878
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xb0]
lea eax, [ecx + 0x20]
and eax, 0xffffffc0
mov dword [esi + 0xa8], eax
lea ebx, [edx + 0x20]
sub eax, ecx
and ebx, 0xffffffc0
mov dword [esi + 0xb0], ebx
mov dword [ebp + 0x90], eax
mov eax, dword [esi + 0xb0]
sub eax, edx
push edi
mov dword [ebp + 0x94], eax
call fcn.10006ef0
add esp, 4
jmp 0x1003d6cf
mov eax, dword [esi + 0xa8]
mov edx, dword [ebx + 0x74]
mov ecx, dword [esi + 0xb0]
lea edx, [edx + eax + 0x20]
and edx, 0xffffffc0
mov dword [esi + 0xa8], edx
mov edx, dword [ebx + 0x78]
lea edx, [edx + ecx + 0x20]
and edx, 0xffffffc0
mov dword [esi + 0xb0], edx
mov edx, dword [esi + 0xa8]
sub edx, eax
mov dword [ebp + 0x90], edx
mov eax, dword [esi + 0xb0]
sub eax, ecx
push edi
mov dword [ebp + 0x94], eax
call fcn.10006ef0
add esp, 4
jmp 0x1003d6cf
mov ebx, dword [ebp + 0x80]
movsx ecx, word [edi + 0x16]
push ebx
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ecx
call fcn.1000af10
add esp, 8
test eax, eax
mov dword [esp + 0x6c], eax
jne 0x1003dd66
mov eax, dword [ebp + 0x84]
mov ecx, dword [edi + 0x58]
mov edx, ebx
shl edx, 5
push edx
push eax
push ecx
call fcn.10056680
mov eax, dword [edi + 0x30]
add esp, 0xc
test ebx, ebx
mov dword [edi + 0x54], ebx
mov dword [esp + 0x28], 0
jbe 0x1003d6cf
shl eax, 5
mov dword [esp + 0x10], eax
jmp 0x1003db10
mov ecx, dword [esi + 0xac]
mov edx, dword [esi + 0xa8]
mov eax, dword [edi + 0x34]
add eax, dword [esp + 0x10]
movsx ebx, word [edi + 0x16]
mov eax, dword [eax]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0xb4]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0xb0]
add ecx, 1
push ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x7c]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x2c], ebx
call fcn.1003d5d0
add esp, 0x14
test eax, eax
mov dword [esp + 0x6c], eax
jne 0x1003dd66
mov eax, dword [edi + 0x34]
add eax, dword [esp + 0x10]
test word [eax + 4], 0x200
mov dword [esp + 0x14], eax
jne 0x1003dbac
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esi + 0xa8], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0xac], ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0xb0], edx
mov dword [esi + 0xb4], ecx
movsx ecx, word [edi + 0x16]
sub ecx, ebx
test byte [eax + 4], 0xc8
mov dword [esp + 0x24], ecx
je 0x1003dbee
mov edx, dword [edi + 0x18]
lea ebx, [edx + ebx*8]
lea ecx, [ebx + ecx*8]
cmp ebx, ecx
mov dword [esp + 0x30], ecx
jae 0x1003dbea
lea ecx, [ecx]
add eax, 0x10
push eax
push ebx
call fcn.10008020
mov eax, dword [esp + 0x1c]
add ebx, 8
add esp, 8
cmp ebx, dword [esp + 0x30]
jb 0x1003dbd0
mov ebx, dword [esp + 0x18]
test byte [eax + 4], 2
jne 0x1003dc2e
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x20]
add eax, ecx
cmp eax, ebx
jae 0x1003dcc4
cmp edx, dword [esp + 0x24]
jae 0x1003dcc4
mov ecx, dword [edi + 0x18]
add edx, ebx
add edx, dword [esp + 0x20]
mov ebx, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
sub ebx, dword [ecx + edx*8]
sub eax, dword [ecx + edx*8 + 4]
lea edx, [ecx + edx*8]
jmp 0x1003dc62
mov ecx, dword [esi + 0x10]
mov edx, dword [eax + 8]
push ecx
push edx
call fcn.10006bc0
add eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
lea ebx, [eax + 0x20]
mov eax, dword [esi + 0x18]
push eax
push edx
and ebx, 0xffffffc0
call fcn.10006bc0
mov ecx, dword [esi + 0x1c]
lea eax, [eax + ecx + 0x20]
add esp, 0x10
and eax, 0xffffffc0
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x5c], edx
mov edx, dword [edi + 0x20]
mov dword [esp + 0x60], edx
mov edx, dword [edi + 0x24]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x18]
push eax
lea ecx, [ecx + edx*8]
mov dx, word [esp + 0x28]
lea eax, [esp + 0x58]
push ebx
push eax
mov dword [esp + 0x64], ecx
mov word [esp + 0x62], dx
call fcn.10007fe0
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], 0x20
add eax, 1
add esp, 0xc
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
jb 0x1003db10
jmp 0x1003d6cf
pop edi
pop esi
pop ebp
mov eax, 0x15
pop ebx
add esp, 0x58
ret
mov edx, dword [ebx + 8]
mov eax, dword [ebp + 0x28]
push edx
push eax
call fcn.10006bc0
add esp, 8
mov dword [ebp + 0x28], eax
xor eax, eax
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x94], eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp + 0x34]
push ecx
push edx
call fcn.10006bc0
mov ecx, dword [ebp + 0x28]
mov esi, dword [esp + 0x34]
add ecx, 0x20
add eax, 0x20
and ecx, 0xffffffc0
and eax, 0xffffffc0
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x34], eax
mov edx, dword [esi]
push edx
call fcn.10006e40
mov eax, dword [esi]
push edi
push eax
call fcn.1000af70
add esp, 0x14
test eax, eax
jne 0x1003dd66
mov ecx, dword [esi]
mov edx, dword [ecx + 0x14]
add ecx, 0x14
mov dword [ebp + 0x6c], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0x70], edx
mov edx, dword [ecx + 8]
mov dword [ebp + 0x74], edx
mov edx, dword [ecx + 0xc]
mov dword [ebp + 0x78], edx
mov ecx, dword [ecx + 0x10]
pop edi
pop esi
mov dword [ebp + 0x7c], ecx
mov dword [ebp + 0x48], 0x6f75746c
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret