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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x10104008]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edx
mov ecx, 0x101080ea
mov dword [esp + 0x34], ebx
call fcn.100de193
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x34]
mov dword [esp + 0x3c], 0
mov esi, 0x2c
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 0
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x1c], eax
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10050de7
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10050dd0
mov ecx, dword [esp + 0x1c]
jmp 0x10050df3
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x10]
inc eax
mov dword [esp + 0xc], eax
xor eax, eax
cmp word [edi + 0x28], ax
jne 0x10050e97
cmp dword [ecx + 0x60], eax
jbe 0x10050e5d
lea eax, [esp + 0x10]
push eax
push 4
call fcn.10042350
add esp, 8
cmp byte [edi + 0x2b], 0
jne 0x10050e38
mov eax, dword [edi + 4]
push 0xa
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
test eax, eax
je 0x10050e38
cmp eax, 5
je 0x10050e5d
jmp 0x10050e97
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.1004fb70
cmp byte [edi + 0x2b], 0
jne 0x10050e77
mov eax, dword [edi + 4]
push 9
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
cmp byte [edi + 0x2b], 0
jne 0x10050e77
mov eax, dword [edi + 4]
push 5
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
or eax, 0xffffffff
xor esi, esi
mov word [edi + 0x28], ax
inc esi
lea edx, [esp + 0x5c]
push esi
push 1
mov ecx, edi
call fcn.100507f0
add esp, 8
cmp eax, 0xffffffff
je 0x10050e80
mov esi, eax
test eax, eax
jne 0x1005152e
mov eax, dword [edi + 0x44]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10050f83
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x70]
mov dword [esp + 0x64], 0x82067f37
mov dword [esp + 0x68], 0x18e22d00
bswap eax
mov dword [esp + 0x6c], eax
mov eax, ecx
bswap eax
mov dword [esp + 0x70], eax
test ecx, ecx
jne 0x10050ee7
lea eax, [edi + 0x54]
push eax
push 8
call fcn.10042350
add esp, 8
mov eax, dword [edi + 0x54]
lea ecx, [esp + 0x64]
mov dword [esp + 0x74], eax
xor edx, edx
mov eax, dword [edi + 0x58]
xor esi, esi
mov dword [esp + 0x78], eax
nop dword [eax]
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x7c]
cmp ecx, eax
jb 0x10050f00
mov eax, esi
mov byte [edi + 0x41], 0
bswap eax
mov dword [esp + 0x7c], eax
mov eax, edx
bswap eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x24], eax
mov dword [edi + 0x50], edx
lea edx, [esp + 0x64]
mov dword [edi + 0x4c], esi
mov eax, dword [edi + 8]
push 0
push 0
mov byte [edi + 0x2f], 1
mov ecx, dword [eax]
push 0x20
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005152c
cmp byte [edi + 0x30], al
je 0x10050f83
mov edx, dword [ebp + 0x14]
mov ecx, dword [edi + 8]
sar edx, 2
and edx, 3
call fcn.1003e830
mov esi, eax
test esi, esi
jne 0x1005152c
mov eax, dword [edi + 8]
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
add eax, 0x18
mov dword [esp + 0x5c], eax
cdq
mov ecx, eax
mov dword [esp + 0x40], edi
mov eax, edx
movlpd qword [esp + 0x48], xmm0
push eax
push ecx
push 0
push dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], eax
call fcn.100de360
mov ecx, eax
mov eax, edx
add ecx, 0x20
mov dword [esp + 0x14], ecx
adc eax, 0
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
test ebx, ebx
je 0x10051149
nop dword [eax + eax]
cmp dword [esp + 0xc], 0
je 0x1005108d
cmp dword [ebx + 0x10], 0
jne 0x10051009
test eax, eax
jne 0x1005108d
mov edx, dword [ebx + 0x18]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.10050b30
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, dword [esp + 0xc]
jb 0x1005108a
push dword [esp + 0x38]
lea eax, [esi - 1]
push dword [esp + 0x20]
push 0
push eax
call fcn.100de360
add eax, 0x38
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x68]
adc edx, 0
test eax, eax
je 0x10051055
cmp esi, eax
jae 0x10051058
mov dword [edi + 0x68], esi
mov eax, dword [edi + 8]
push edx
push dword [esp + 0x14]
push dword [esp + 0x34]
mov ecx, dword [eax]
push dword [ebx + 4]
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005152c
mov ecx, 0xffbf
and word [ebx + 0x1c], cx
jmp 0x1005112f
mov eax, dword [ebp + 0x10]
inc dword [esp + 0x24]
test eax, eax
je 0x100510a0
cmp dword [ebx + 0x10], 0
jne 0x100510a0
mov eax, dword [ebp + 0xc]
jmp 0x100510a2
xor eax, eax
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x84]
push edx
mov edx, dword [ebx + 0x18]
push ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x48]
push eax
call fcn.1004ef40
add esp, 0xc
lea edx, [esp + 0x84]
lea ecx, [esp + 0x40]
push dword [esp + 0x20]
push dword [esp + 0x18]
push 0x18
call fcn.10050ca0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005152c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add ecx, 0x18
mov edx, dword [esp + 0x10]
adc eax, esi
push eax
push ecx
push dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
call fcn.10050ca0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005152c
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
adc dword [esp + 0x20], eax
or word [ebx + 0x1c], 0x40
mov dword [esp + 0x3c], ebx
mov ebx, dword [ebx + 0x10]
test ebx, ebx
je 0x1005113e
mov eax, dword [ebp + 0x10]
jmp 0x10050ff0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10051457
cmp dword [edi + 0x68], 0
je 0x100512b4
mov ebx, dword [edi + 0x24]
mov dword [esp + 0x10], ebx
lea esi, [ebx + 0x18]
call fcn.100baf60
test eax, eax
jne 0x100514dc
test esi, esi
jle 0x100514dc
mov eax, ebx
cdq
add eax, 0x18
adc edx, 0
push edx
push eax
call fcn.1003f3a0
mov ebx, eax
add esp, 8
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x100514dc
mov ecx, dword [edi + 0x68]
cmp ecx, 1
jne 0x100511aa
lea esi, [ecx + 0x17]
xor edx, edx
jmp 0x100511c2
mov eax, esi
add ecx, 0xfffffffe
cdq
push edx
push eax
push 0
push ecx
call fcn.100de360
mov esi, eax
add esi, 0x30
adc edx, 0
mov ecx, dword [edi + 8]
push edx
push esi
push 8
mov eax, dword [ecx]
push ebx
push ecx
mov eax, dword [eax + 8]
call eax
mov esi, eax
add esp, 0x14
mov eax, dword [ebx]
bswap eax
mov dword [edi + 0x4c], eax
mov eax, dword [ebx + 4]
bswap eax
mov dword [edi + 0x50], eax
mov ebx, dword [edi + 0x68]
mov dword [edi + 0x68], 0
test esi, esi
jne 0x100512a0
nop dword [eax + eax]
cmp ebx, dword [esp + 0x24]
ja 0x100512a0
mov eax, dword [esp + 0x10]
lea ecx, [ebx - 1]
lea eax, [eax + 0x18]
cdq
push edx
push eax
push 0
push ecx
call fcn.100de360
mov ecx, dword [edi + 8]
mov esi, eax
add esi, 0x20
mov dword [esp + 0x30], esi
adc edx, 0
mov eax, dword [ecx]
push edx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 8]
add edx, 0x18
push esi
push edx
push dword [esp + 0x18]
push ecx
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10051297
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x9c]
push eax
mov edx, dword [ecx]
lea eax, [ecx + 0x18]
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
bswap eax
push eax
bswap edx
call fcn.1004ef40
mov eax, dword [edi + 8]
lea edx, [esp + 0xa8]
add esp, 0xc
mov ecx, dword [eax]
push dword [esp + 0x60]
push dword [esp + 0x34]
push 0x18
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov esi, eax
inc ebx
test esi, esi
je 0x10051200
push dword [esp + 0xc]
call fcn.1003f620
add esp, 4
test esi, esi
jne 0x1005152c
and dword [ebp + 0x14], 3
je 0x10051403
cmp byte [edi + 0x31], 0
je 0x100513ef
mov ecx, dword [edi + 8]
call fcn.1004b350
mov ebx, dword [esp + 0x20]
cdq
mov ecx, eax
add ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov ecx, edx
adc ecx, ebx
sub dword [esp + 0xc], 1
push edx
sbb ecx, 0
push eax
push ecx
push dword [esp + 0x18]
mov dword [esp + 0x40], ecx
call fcn.100de3a0
sub dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
sbb ecx, edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
cmp edx, eax
jne 0x10051325
mov dword [esp + 0x10], 1
cmp ecx, ebx
je 0x1005132d
mov dword [esp + 0x10], 0
cmp ebx, ecx
jg 0x100513e8
jl 0x10051340
cmp eax, edx
jae 0x100513e8
nop
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0xb4]
push edx
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x44]
push eax
push dword [ebp + 0xc]
mov dword [esp + 0x3c], eax
call fcn.1004ef40
add esp, 0xc
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x40]
push ebx
push dword [esp + 0x18]
push 0x18
call fcn.10050ca0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005152c
mov ecx, dword [esp + 0x14]
mov eax, ebx
mov edx, dword [esp + 0x30]
add ecx, 0x18
adc eax, esi
push eax
push ecx
push dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
call fcn.10050ca0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005152c
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
cdq
add ecx, eax
mov dword [esp + 0x14], ecx
adc ebx, edx
inc dword [esp + 0x28]
cmp ebx, dword [esp + 0x4c]
jl 0x10051340
jg 0x100513e0
cmp ecx, dword [esp + 0x48]
jb 0x10051340
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
je 0x10051403
mov ecx, dword [esp + 0x18]
push dword [ebp + 0x14]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
add esp, 8
mov esi, eax
cmp byte [edi + 0x2f], 0
je 0x10051457
cmp dword [edi + 0x14], 0
mov ebx, dword [edi + 0x10]
jl 0x10051457
jg 0x10051418
test ebx, ebx
jb 0x10051457
push dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x20]
add eax, dword [esp + 0x2c]
push 0
push eax
call fcn.100de360
mov ecx, dword [edi + 0x14]
add eax, 0x20
adc edx, 0
cmp edx, ecx
jl 0x10051447
jg 0x10051443
cmp eax, ebx
jbe 0x10051447
mov ebx, eax
mov ecx, edx
push ecx
push ebx
mov ecx, edi
call fcn.10050080
add esp, 8
mov byte [edi + 0x2f], 0
mov eax, dword [esp + 0x34]
mov ebx, dword [edi + 0x44]
test eax, eax
je 0x10051491
test esi, esi
jne 0x1005152c
test byte [eax + 0x1c], 0x40
je 0x10051486
push dword [eax + 0x18]
inc ebx
mov ecx, edi
mov edx, ebx
call fcn.1004f1f0
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x10051462
test esi, esi
jne 0x1005152c
nop dword [eax]
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x100514f8
dec eax
inc ebx
mov dword [esp + 0x28], eax
mov edx, ebx
mov eax, dword [esp + 0x3c]
mov ecx, edi
push dword [eax + 0x18]
call fcn.1004f1f0
mov esi, eax
add esp, 4
test esi, esi
je 0x100514a0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
mov esi, 7
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1005152c
mov ecx, dword [esp + 0x2c]
mov eax, ecx
sar eax, 0x10
and ecx, 0xff00
or eax, ecx
mov dword [edi + 0x44], ebx
mov word [edi + 0x42], ax
cmp dword [ebp + 0x10], esi
je 0x1005152c
mov eax, dword [ebp + 0xc]
mov ecx, edi
inc dword [edi + 0x3c]
mov dword [edi + 0x48], eax
call fcn.1004eea0
mov dword [edi + 0xc], ebx
mov eax, esi
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret