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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
mov eax, dword [esi]
mov ecx, dword [esi + 0x84]
mov ebp, dword [eax + 0x54]
mov edx, dword [ebp + 0x9c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x80]
push edi
mov edi, dword [esi + 8]
or ecx, 0x2000
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x80]
push ecx
push edx
push eax
lea ebx, [esi + 0xc]
call fcn.100079c0
add esp, 0xc
test eax, eax
jne 0x10044855
mov eax, dword [esp + 0x30]
mov cl, byte [eax + 8]
mov byte [esi + 0x88], cl
test cl, cl
je 0x1004401e
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x8c], ecx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x90], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x94], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x98], edx
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x9c], ecx
mov edx, dword [eax + 0x20]
mov ecx, dword [esi + 0x90]
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x54], ecx
mov dword [esi + 0xa0], edx
mov edx, dword [esi + 0x94]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x98]
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
call fcn.10004830
lea edx, [esp + 0x54]
push edx
lea eax, [esi + 0x9c]
push eax
call fcn.10005ba0
add esp, 0xc
mov eax, dword [ebp + 0x48]
cmp eax, 0x636f6d70
je 0x100444e6
cmp eax, 0x6f75746c
je 0x10044219
mov dword [esp + 0x78], 7
cmp dword [esp + 0x88], 0
jne 0x10044851
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x30]
mov ebx, dword [esp + 0x1c]
sub ecx, dword [ebp + 0x20]
sub edx, dword [ebp + 0x24]
mov eax, dword [ebx + 8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x78]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x84], eax
cmp byte [esi + 0x88], 0
mov eax, dword [esp + 0x84]
mov dword [esp + 0x40], eax
je 0x10044106
lea ebx, [esi + 0x8c]
lea ecx, [edi + 0x14]
push ebx
push ecx
call fcn.10005c00
lea edx, [esp + 0x44]
push ebx
push edx
call fcn.10005ba0
mov ebx, dword [esp + 0x2c]
add esp, 0x10
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x10044121
neg eax
push 0
push eax
lea eax, [edi + 0x14]
push eax
call fcn.10005b60
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
lea edx, [edi + 0x14]
push edx
call fcn.10005ad0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
and dword [esp + 0x5c], 0xffffffc0
add eax, 0x3f
and eax, 0xffffffc0
and edx, 0xffffffc0
mov dword [esp + 0x60], eax
sub eax, edx
add ecx, 0x3f
and ecx, 0xffffffc0
mov dword [ebp + 0x18], eax
mov eax, ecx
sub eax, dword [esp + 0x5c]
mov dword [ebp + 0x20], edx
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], edx
add edx, eax
mov eax, dword [esp + 0x84]
and edx, 0xffffffc0
mov dword [ebp + 0x2c], edx
mov edx, dword [esp + 0x48]
mov dword [ebp + 0x24], ecx
mov dword [esp + 0x64], ecx
add ecx, edx
and ecx, 0xffffffc0
add esp, 8
mov dword [ebp + 0x30], ecx
cmp dword [eax + 0x14], 1
je 0x10044792
mov ecx, dword [ebp + 4]
test byte [ecx + 8], 4
jne 0x100441c5
mov eax, dword [esp + 0x80]
mov ecx, dword [esi + 4]
call fcn.10040870
test al, al
je 0x10044792
cmp byte [ebx + 0x20], 0
je 0x10044792
mov edx, dword [ebx + 8]
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x78], edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x78]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x84]
xor eax, eax
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x94], eax
jmp 0x100447a7
cmp byte [esi + 0x88], 0
je 0x1004423c
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x9c]
push eax
push ecx
lea edx, [ebp + 0x6c]
push edx
call fcn.10005b60
add esp, 0xc
movsx eax, word [ebp + 0x6e]
lea ecx, [eax + 4]
mov dword [esp + 0x84], ecx
test ecx, ecx
je 0x10044261
movsx ecx, word [edi + 0x3a]
movsx edx, word [edi + 0x16]
add ecx, eax
lea eax, [edx + ecx + 4]
cmp eax, dword [edi + 4]
ja 0x10044284
movzx eax, word [ebp + 0x6c]
test ax, ax
je 0x1004443b
movsx ecx, word [edi + 0x38]
movsx edx, word [edi + 0x14]
cwde
add ecx, edx
add ecx, eax
cmp ecx, dword [edi + 8]
jbe 0x1004443b
movsx ecx, word [ebp + 0x6c]
mov edx, dword [esp + 0x84]
push ecx
push edx
push edi
call fcn.10008fe0
add esp, 0xc
mov dword [esp + 0x78], eax
test eax, eax
jne 0x10044855
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.10066270
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.10066270
movsx eax, word [ebp + 0x6e]
mov ecx, dword [ebp + 0x74]
mov edx, dword [edi + 0x40]
push eax
push ecx
push edx
call fcn.10066270
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 + 0xa4], edx
mov eax, dword [ebx + 0x10]
mov dword [esi + 0xa8], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 0x28]
push ecx
push edx
call fcn.10036ba0
add eax, dword [ebx + 8]
add esp, 0x2c
mov dword [esi + 0xac], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0xb0], eax
cmp word [ebp + 0x6e], 0
je 0x1004403f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov eax, dword [eax*4 + 0x100b7a20]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x10044355
push ecx
lea ecx, [edi + 0x38]
push ecx
push ebx
call eax
add esp, 0xc
mov ecx, dword [esp + 0x7c]
cmp dword [ecx + 0x14], 1
je 0x10044490
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x40]
lea eax, [edx + edx*2]
shl eax, 4
cmp edx, 1
lea eax, [eax + ecx - 0x30]
mov dword [esp + 0x24], eax
jle 0x10044448
test byte [ebx + 0x64], 4
jne 0x10044448
mov ebx, dword [ecx + 4]
mov edx, dword [esi + 0xac]
sub edx, dword [eax + 4]
mov ecx, dword [ecx + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], ecx
sub ecx, ebx
add eax, edx
cmp ebx, 0x18
mov dword [esp + 0x20], edx
mov dword [esp + 0x84], ebx
jge 0x100443b7
sub ecx, 8
cmp edx, 0x18
jge 0x100443bf
add eax, 8
lea edx, [ecx + 0x20]
and edx, 0xffffffc0
lea ebx, [eax + 0x20]
and ebx, 0xffffffc0
cmp edx, dword [esp + 0x2c]
mov dword [esi + 0xa4], edx
mov dword [esp + 0x28], ebx
mov dword [esi + 0xac], ebx
jl 0x100443f4
cmp dword [esp + 0x84], 0
jle 0x100443f4
add edx, 0xffffffc0
mov dword [esi + 0xa4], edx
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
cmp edx, dword [ebx + 8]
jg 0x10044411
cmp dword [esp + 0x20], 0
jle 0x10044411
add edx, 0x40
mov dword [esi + 0xac], edx
mov edx, dword [esi + 0xa4]
sub edx, ecx
mov dword [ebp + 0x90], edx
mov ecx, dword [esi + 0xac]
sub ecx, eax
push edi
mov dword [ebp + 0x94], ecx
call fcn.10004be0
add esp, 4
jmp 0x1004403f
mov dword [esp + 0x78], 0
jmp 0x100442a6
mov ecx, dword [esi + 0xa4]
mov edx, dword [esi + 0xac]
lea eax, [ecx + 0x20]
and eax, 0xffffffc0
mov dword [esi + 0xa4], eax
lea ebx, [edx + 0x20]
sub eax, ecx
and ebx, 0xffffffc0
mov dword [esi + 0xac], ebx
mov dword [ebp + 0x90], eax
mov eax, dword [esi + 0xac]
sub eax, edx
push edi
mov dword [ebp + 0x94], eax
call fcn.10004be0
add esp, 4
jmp 0x1004403f
mov eax, dword [esi + 0xa4]
mov edx, dword [ebx + 0x70]
mov ecx, dword [esi + 0xac]
lea edx, [edx + eax + 0x20]
and edx, 0xffffffc0
mov dword [esi + 0xa4], edx
mov edx, dword [ebx + 0x74]
lea edx, [edx + ecx + 0x20]
and edx, 0xffffffc0
mov dword [esi + 0xac], edx
mov edx, dword [esi + 0xa4]
sub edx, eax
mov dword [ebp + 0x90], edx
mov eax, dword [esi + 0xac]
sub eax, ecx
push edi
mov dword [ebp + 0x94], eax
call fcn.10004be0
add esp, 4
jmp 0x1004403f
mov ebx, dword [ebp + 0x80]
movsx ecx, word [edi + 0x16]
push ebx
push edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], ecx
call fcn.10009160
add esp, 8
mov dword [esp + 0x78], eax
test eax, eax
jne 0x10044855
mov eax, dword [ebp + 0x84]
mov ecx, dword [edi + 0x58]
mov edx, ebx
shl edx, 5
push edx
push eax
push ecx
call fcn.10066270
mov eax, dword [edi + 0x30]
add esp, 0xc
mov dword [edi + 0x54], ebx
mov dword [esp + 0x2c], 0
test ebx, ebx
jbe 0x1004403f
shl eax, 5
mov dword [esp + 0x10], eax
jmp 0x10044550
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xa4]
mov eax, dword [edi + 0x34]
add eax, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0xb0]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0xac]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x50], edx
movsx edx, word [edi + 0x16]
inc ecx
push ecx
mov ecx, dword [esp + 0x88]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [eax]
mov eax, dword [esp + 0x84]
push edx
push eax
push esi
call fcn.10043f40
add esp, 0x14
mov dword [esp + 0x78], eax
test eax, eax
jne 0x10044855
mov ebx, dword [edi + 0x34]
add ebx, dword [esp + 0x10]
mov ecx, 0x200
test word [ebx + 4], cx
jne 0x100445f2
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esi + 0xa4], edx
mov edx, dword [esp + 0x54]
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], ecx
mov dword [esi + 0xb0], edx
movsx ecx, word [edi + 0x16]
mov edx, dword [esp + 0x18]
sub ecx, edx
test byte [ebx + 4], 0xc8
mov dword [esp + 0x28], ecx
je 0x10044646
mov eax, dword [edi + 0x18]
lea eax, [eax + edx*8]
lea ecx, [eax + ecx*8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ecx
cmp eax, ecx
jae 0x10044646
jmp 0x10044624
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 0x10]
push ecx
push eax
call fcn.10005ba0
mov eax, dword [esp + 0x1c]
add eax, 8
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x34]
jb 0x10044620
mov edx, dword [esp + 0x18]
test byte [ebx + 4], 2
jne 0x1004469a
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x38]
mov ebx, dword [ebx + 0xc]
add ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, edx
jae 0x10044785
cmp ebx, dword [esp + 0x28]
jae 0x10044785
mov ecx, dword [edi + 0x18]
add ebx, edx
add ebx, eax
mov eax, dword [esp + 0x18]
mov eax, dword [ecx + eax*8]
sub eax, dword [ecx + ebx*8]
lea ebx, [ecx + ebx*8]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [ecx + ebx*8 + 4]
mov ebx, dword [esp + 0x34]
sub ecx, dword [ebx + 4]
jmp 0x10044729
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx + 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
add eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x1c]
mov ecx, dword [esp + 0x24]
add eax, 0x20
lea ecx, [edx + ecx + 0x20]
mov edx, dword [esp + 0x18]
and eax, 0xffffffc0
and ecx, 0xffffffc0
mov ebx, dword [edi + 0x14]
mov dword [esp + 0x60], ebx
mov ebx, dword [edi + 0x1c]
mov dword [esp + 0x68], ebx
mov ebx, dword [edi + 0x20]
mov dword [esp + 0x6c], ebx
mov ebx, dword [edi + 0x24]
mov dword [esp + 0x70], ebx
mov ebx, dword [edi + 0x18]
push ecx
lea edx, [ebx + edx*8]
push eax
mov dword [esp + 0x6c], edx
mov dx, word [esp + 0x30]
lea eax, [esp + 0x68]
push eax
mov word [esp + 0x6e], dx
call fcn.10005b60
mov eax, dword [esp + 0x38]
add dword [esp + 0x1c], 0x20
inc eax
add esp, 0xc
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x44]
jb 0x10044550
jmp 0x1004403f
pop edi
pop esi
pop ebp
mov eax, 0x15
pop ebx
add esp, 0x64
ret
cmp dword [ebp + 0x28], 0
je 0x100447a7
mov edx, dword [esi + 0xac]
sub edx, dword [esi + 0xa4]
mov dword [ebp + 0x28], edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x78], eax
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x78]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x84], eax
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x30]
add edx, 0x20
add eax, 0x20
and edx, 0xffffffc0
and eax, 0xffffffc0
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x34], eax
mov ecx, dword [esi]
push ecx
call fcn.10004b30
mov edx, dword [esi]
push edi
push edx
call fcn.100091c0
add esp, 0xc
test eax, eax
jne 0x10044855
mov ecx, dword [esi]
movzx edx, word [ecx + 0x14]
mov word [ebp + 0x6c], dx
mov ecx, dword [esi]
movzx edx, word [ecx + 0x16]
mov word [ebp + 0x6e], dx
mov ecx, dword [esi]
mov edx, dword [ecx + 0x18]
mov dword [ebp + 0x70], edx
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1c]
mov dword [ebp + 0x74], edx
mov ecx, dword [esi]
mov edx, dword [ecx + 0x20]
pop edi
pop esi
mov dword [ebp + 0x78], edx
mov dword [ebp + 0x48], 0x6f75746c
pop ebp
pop ebx
add esp, 0x64
ret
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret