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

Disassembly:
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x80]
mov eax, dword [ebp]
xor ebx, ebx
cmp dword [esp + 0x94], ebx
push esi
push edi
sete bl
mov edi, ecx
lea ecx, [esp + 0x28]
push ecx
xor esi, esi
push ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x1c], 0
lea ebx, [ebx*4 + 8]
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], esi
call dword [eax + 0x1c]
mov eax, dword [ebp]
push ebp
call dword [eax + 0x24]
push 9
push edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x3c], eax
call fcn.1007a181
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x6c]
jb 0x10050c25
xor eax, eax
jmp 0x10050c28
movzx eax, byte [eax]
test al, 0x40
je 0x10050c2f
or eax, 0x20
mov edi, dword [esp + 0x8c]
and eax, 0x3f
mov dword [esp + 0x20], eax
je 0x10050e4b
add eax, 0xffffffdd
cmp eax, 0x18
ja case.0x10050c56.38
movzx eax, byte [eax + 0x10051128]
jmp dword [eax*4 + 0x10051118]
cmp dword [esp + 0x28], 0
mov esi, dword [esp + 0x94]
jne 0x10050c75
cmp dword [esp + 0x34], esi
jne case.0x10050c56.38
push 0
push 0
lea ecx, [esp + 0x78]
call fcn.1007a181
push 0xf
lea ecx, [esp + 0x84]
call fcn.1007a181
cmp dword [esp + 0x20], 0x24
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x60]
jne 0x10050cd1
lea eax, [esp + 0x48]
push eax
call fcn.1007a181
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push ebx
lea ecx, [esp + 0x50]
push ecx
push ebp
call dword [eax + 8]
mov ebp, eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x74]
call fcn.1007a181
jmp 0x10050cef
lea eax, [esp + 0x70]
push eax
call fcn.1007a181
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push ebx
lea ecx, [esp + 0x78]
push ecx
push ebp
call dword [eax + 0x10]
mov ebp, eax
cmp ebp, 0x20040003
je 0x10050e23
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x1c]
cmp ebp, 0x20040002
je 0x10050d17
cmp ebp, 0x20040005
jne 0x10050e78
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10050d36
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push 0x100097c4
push edi
call dword [eax]
test eax, eax
js 0x10050d4f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x10050d53
push eax
push dword [esp + 0x8c]
lea ecx, [esp + 0x68]
call fcn.1007a181
mov ecx, dword [esp + 0x1c]
cmp esi, dword [esp + 0x18]
je 0x10050e78
test ecx, ecx
jne 0x10050dd4
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
sub eax, dword [ecx + 4]
push 0
mov dword [esp + 0x24], eax
mov eax, dword [edi]
push edi
call dword [eax + 0x20]
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push 0x10009884
push edi
mov dword [esp + 0x28], 1
call dword [eax]
test eax, eax
js 0x10050dd4
mov ecx, dword [esp + 0x24]
push 0xff
lea eax, [esp + 0x64]
push eax
call fcn.1007a181
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x68]
push 9
lea eax, [esp + 0x64]
push eax
call fcn.1007a181
mov eax, dword [esp + 0x20]
add eax, esi
push eax
lea ecx, [esp + 0x64]
call fcn.1007a181
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x98]
push dword [esp + 0x18]
mov ecx, esi
call fcn.1007a181
mov ecx, dword [esi]
lea edx, [esp + 0x40]
push edx
push eax
push eax
push esi
mov dword [esp + 0x40], eax
call dword [ecx + 0x7c]
test eax, eax
js 0x10050e78
lea ecx, [esp + 0x60]
call fcn.1007a181
test eax, eax
js 0x10050e23
push dword [esp + 0x40]
lea ecx, [esp + 0x64]
call fcn.1007a181
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x64]
call fcn.1007a181
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x60]
call fcn.1002cc12
test al, 0x40
je 0x10050e3e
or eax, 0x20
and eax, 0x3f
mov dword [esp + 0x20], eax
jne 0x10050c43
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x10050e58
mov dword [eax], esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10050e66
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [edi]
push 1
push edi
call dword [eax + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x1c
lea ecx, [esp + 0x60]
cmp ebp, 0x20040002
jne 0x10050e99
mov dword [esp + 0x10], 1
call fcn.10053aab
mov eax, dword [edi]
push edi
call dword [eax + 0x10]
jmp 0x10050e23
lea eax, [esp + 0x70]
push eax
call fcn.1007a181
mov eax, dword [edi]
push edi
call dword [eax + 0x10]
jmp 0x10050e23
lea ecx, [esp + 0x60]
call fcn.1002d673
cmp dword [esp + 0x28], 0
mov esi, eax
jne 0x10050ed3
push dword [esp + 0x34]
mov ecx, esi
call fcn.1007a181
test eax, eax
je case.0x10050c56.38
push 0
push 0
lea ecx, [esp + 0x78]
call fcn.1007a181
push 0xf
lea ecx, [esp + 0x84]
call fcn.1007a181
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x64]
call fcn.1007a181
cmp dword [esp + 0x9c], 0
jne 0x10050f44
mov ecx, dword [esp + 0x80]
mov eax, ecx
not eax
test al, 1
jne case.0x10050c56.38
mov eax, ecx
shr eax, 2
not eax
test al, 1
jne case.0x10050c56.38
mov eax, ecx
shr eax, 1
not eax
test al, 1
jne case.0x10050c56.38
shr ecx, 3
not ecx
test cl, 1
jne case.0x10050c56.38
push 2
push 1
lea eax, [esp + 0x38]
push eax
push eax
mov ecx, esi
call fcn.1007a181
test eax, eax
js 0x10050f68
mov ecx, esi
call fcn.1007a181
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], 0x3a
jne 0x10050fad
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x58]
call fcn.1007a181
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push ebx
lea ecx, [esp + 0x5c]
push ecx
push ebp
call dword [eax + 8]
mov esi, eax
cmp esi, 0x20040003
je case.0x10050c56.38
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x74]
call fcn.1007a181
jmp 0x10050fc1
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push ebx
lea ecx, [esp + 0x78]
push ecx
push ebp
call dword [eax + 0x10]
mov esi, eax
cmp esi, 0x20040003
je case.0x10050c56.38
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x1c]
cmp esi, 0x20040002
je 0x10050fe5
cmp esi, 0x20040005
jne 0x10051056
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10051004
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push 0x100097c4
push edi
call dword [eax]
test eax, eax
js 0x1005100f
mov eax, dword [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x68]
call fcn.1007a181
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], eax
je 0x10051056
mov ecx, dword [esp + 0x98]
push eax
call fcn.1007a181
mov edx, dword [esp + 0x98]
mov ecx, dword [edx]
lea ebp, [esp + 0x44]
push ebp
push eax
push eax
push edx
mov dword [esp + 0x40], eax
call dword [ecx + 0x7c]
mov ebp, dword [esp + 0x88]
test eax, eax
js 0x10051056
push dword [esp + 0x44]
lea ecx, [esp + 0x64]
call fcn.1007a181
lea ecx, [esp + 0x60]
cmp esi, 0x20040002
jne 0x1005107b
mov esi, 1
mov dword [esp + 0x10], esi
call fcn.10053aab
mov eax, dword [edi]
push edi
call dword [eax + 0x10]
jmp 0x10050e2e
lea eax, [esp + 0x70]
push eax
call fcn.1007a181
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
push edi
call dword [eax + 0x10]
jmp 0x10050e2e
lea ecx, [esp + 0x60]
call fcn.10031a6e
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp]
push ebp
call dword [eax + 0x20]
cmp eax, 0x20040003
je case.0x10050c56.38
mov eax, dword [edi]
mov esi, dword [esp + 0x38]
push 0
push edi
call dword [eax + 0x1c]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100510e3
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push 0x100097c4
push edi
call dword [eax]
test eax, eax
js 0x100510ee
mov eax, dword [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x68]
call fcn.1007a181
cmp dword [esp + 0x20], 0x39
jne 0x10051101
push dword [esi + 0x3c]
lea ecx, [esp + 0x64]
call fcn.1007a181
push esi
lea ecx, [esp + 0x64]
call fcn.1007a181
mov eax, dword [edi]
push edi
call dword [eax + 0x10]
jmp case.0x10050c56.38