Function at 0x1003e780
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 + 0x28], 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.10004f20
add esp, 0xc
test eax, eax
jne 0x1003ef24
mov eax, dword [esp + 0x2c]
mov cl, byte [eax + 8]
mov byte [esi + 0x8c], cl
test cl, cl
je 0x1003e852
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.10001340
lea edx, [esp + 0x48]
push edx
lea eax, [esi + 0xa0]
push eax
call fcn.10002b00
add esp, 0xc
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x3c], ecx
cmp eax, 0x636f6d70
je 0x1003ec72
cmp eax, 0x6f75746c
je 0x1003e9bb
mov dword [esp + 0x6c], 7
cmp dword [esp + 0x7c], 0
jne 0x1003ef20
mov eax, dword [ebp + 0x2c]
mov ebx, dword [esp + 0x28]
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.10001230
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0xc]
push eax
push ecx
call fcn.10001230
add esp, 0x10
cmp byte [esi + 0x8c], 0
mov dword [esp + 0x38], eax
je 0x1003e8f2
lea eax, [esi + 0x90]
push eax
lea edx, [edi + 0x14]
push edx
call fcn.10002b60
lea eax, [esi + 0x90]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.10002b00
add esp, 0x10
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x1003e90d
push 0
neg eax
push eax
lea ecx, [edi + 0x14]
push ecx
call fcn.10002ac0
add esp, 0xc
lea edx, [esp + 0x44]
push edx
lea eax, [edi + 0x14]
push eax
call fcn.10002a30
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 0x1003ee8f
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 4]
call fcn.1003b5a0
test al, al
je 0x1003e99d
cmp byte [ebx + 0x20], 0
jne 0x1003ee8f
cmp dword [ebp + 0x28], 0
je 0x1003eeb0
mov ecx, dword [esi + 0xb0]
sub ecx, dword [esi + 0xa8]
mov dword [ebp + 0x28], ecx
jmp 0x1003eeb0
cmp byte [esi + 0x8c], 0
je 0x1003e9de
mov edx, dword [esi + 0xa4]
mov eax, dword [esi + 0xa0]
push edx
push eax
lea ecx, [ebp + 0x6c]
push ecx
call fcn.10002ac0
add esp, 0xc
movsx eax, word [ebp + 0x6e]
lea ecx, [eax + 4]
mov dword [esp + 0x6c], ecx
test ecx, ecx
je 0x1003ea00
movsx edx, word [edi + 0x3a]
movsx ecx, word [edi + 0x16]
add edx, eax
lea edx, [ecx + edx + 4]
cmp edx, dword [edi + 4]
ja 0x1003ea23
movzx eax, word [ebp + 0x6c]
test ax, ax
je 0x1003ebc7
movsx ecx, word [edi + 0x38]
movsx edx, word [edi + 0x14]
cwde
add ecx, edx
add ecx, eax
cmp ecx, dword [edi + 8]
jbe 0x1003ebc7
movsx ecx, word [ebp + 0x6c]
mov edx, dword [esp + 0x6c]
push ecx
push edx
push edi
call fcn.10006650
add esp, 0xc
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1003ef24
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.100fbb50
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.100fbb50
movsx eax, word [ebp + 0x6e]
mov ecx, dword [ebp + 0x74]
mov edx, dword [edi + 0x40]
push eax
push ecx
push edx
call fcn.100fbb50
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.10001230
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 0x1003e87f
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x1003eae7
push eax
lea eax, [edi + 0x38]
push eax
push ebx
call ecx
add esp, 0xc
mov edx, dword [esp + 0x70]
cmp dword [edx + 0x14], 1
je 0x1003ec1c
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 + 0x1c], eax
jle 0x1003ebd4
test byte [ebx + 0x68], 4
jne 0x1003ebd4
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 + 0x24], ecx
sub ecx, ebx
add eax, edx
cmp ebx, 0x18
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
jge 0x1003eb46
sub ecx, 8
cmp edx, 0x18
jge 0x1003eb4e
add eax, 8
lea edx, [ecx + 0x20]
and edx, 0xffffffc0
lea ebx, [eax + 0x20]
and ebx, 0xffffffc0
cmp edx, dword [esp + 0x24]
mov dword [esi + 0xa8], edx
mov dword [esp + 0x20], ebx
mov dword [esi + 0xb0], ebx
jl 0x1003eb80
cmp dword [esp + 0x18], 0
jle 0x1003eb80
add edx, 0xffffffc0
mov dword [esi + 0xa8], edx
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp edx, dword [ebx + 8]
jg 0x1003eb9d
cmp dword [esp + 0x14], 0
jle 0x1003eb9d
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.10001740
add esp, 4
jmp 0x1003e87f
mov dword [esp + 0x6c], 0
jmp 0x1003ea42
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.10001740
add esp, 4
jmp 0x1003e87f
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.10001740
add esp, 4
jmp 0x1003e87f
mov ebx, dword [ebp + 0x80]
movsx ecx, word [edi + 0x16]
push ebx
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], ecx
call fcn.100067c0
add esp, 8
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1003ef24
mov eax, dword [ebp + 0x84]
mov ecx, dword [edi + 0x58]
mov edx, ebx
shl edx, 5
push edx
push eax
push ecx
call fcn.100fbb50
mov eax, dword [edi + 0x30]
add esp, 0xc
mov dword [edi + 0x54], ebx
mov dword [esp + 0x24], 0
test ebx, ebx
jbe 0x1003e87f
shl eax, 5
mov dword [esp + 0x10], eax
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]
inc ecx
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.1003e780
add esp, 0x14
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x1003ef24
mov eax, dword [edi + 0x34]
add eax, dword [esp + 0x10]
mov edx, 0x200
mov dword [esp + 0x14], eax
test word [eax + 4], dx
jne 0x1003ed6d
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esi + 0xa8], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 0xac], edx
mov edx, dword [esp + 0x48]
mov dword [esi + 0xb0], ecx
mov dword [esi + 0xb4], edx
movsx ecx, word [edi + 0x16]
sub ecx, ebx
test byte [eax + 4], 0xc8
mov dword [esp + 0x20], ecx
je 0x1003edae
mov edx, dword [edi + 0x18]
lea ebx, [edx + ebx*8]
lea ecx, [ebx + ecx*8]
mov dword [esp + 0x30], ecx
cmp ebx, ecx
jae 0x1003edaa
mov edi, edi
add eax, 0x10
push eax
push ebx
call fcn.10002b00
mov eax, dword [esp + 0x1c]
add ebx, 8
add esp, 8
cmp ebx, dword [esp + 0x30]
jb 0x1003ed90
mov ebx, dword [esp + 0x18]
test byte [eax + 4], 2
jne 0x1003edee
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
add eax, ecx
cmp eax, ebx
jae 0x1003ee82
cmp edx, dword [esp + 0x20]
jae 0x1003ee82
mov ecx, dword [edi + 0x18]
add edx, ebx
add edx, dword [esp + 0x1c]
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 0x1003ee22
mov ecx, dword [esi + 0x10]
mov edx, dword [eax + 8]
push ecx
push edx
call fcn.10001230
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.10001230
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 + 0x24]
lea eax, [esp + 0x58]
push ebx
push eax
mov dword [esp + 0x64], ecx
mov word [esp + 0x62], dx
call fcn.10002ac0
mov eax, dword [esp + 0x30]
add dword [esp + 0x1c], 0x20
inc eax
add esp, 0xc
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x34]
jb 0x1003ecd0
jmp 0x1003e87f
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.10001230
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.10001230
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.10001690
mov eax, dword [esi]
push edi
push eax
call fcn.10006820
add esp, 0x14
test eax, eax
jne 0x1003ef24
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