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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x88]
push ebx
mov ebx, dword [esp + 0x88]
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov dword [esp + 0x28], eax
mov eax, dword [eax]
imul esi, eax, 0x64
push edi
mov edi, dword [ebx*4 + 0x10139180]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0xffffffff
add esi, 0x10139580
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x10049ecd
mov dword [esi + 0x10], ebx
xor ecx, ecx
mov eax, dword [edi + 0xe8]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0xe4]
and dword [esi + 0x60], 0xfffffffe
and eax, 0xfffdffff
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x58], ecx
mov dword [esi + 0x34], ecx
mov ecx, dword [edi + 0xe4]
test cl, 0x20
jne 0x10049ecd
test ecx, 0x8000
je 0x100499ed
or eax, 1
mov dword [esi + 0x44], eax
test byte [esi + 0x44], 1
je 0x10049ecd
mov eax, dword [esp + 0xa0]
and eax, reloc.mswstr10.dll_Ordinal_4
mov dword [esp + 0x30], eax
jne 0x10049a52
push ebp
call fcn.1004d930
test eax, eax
je 0x10049a52
test byte [edi + 0xe4], 0x10
jne 0x10049a52
push 0
push 0
push 0
push 0xffffddd9
push 0
push 0
push ebp
push dword [esp + 0xac]
call fcn.100377a0
pop edi
pop esi
pop ebp
mov eax, 0xffffb137
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1011720d
add esp, 0x7c
ret 0x14
mov edi, dword [esp + 0x90]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x20]
push eax
push ebp
push 0x10002410
push ebx
push edi
call fcn.10046ee0
test eax, eax
js 0x10049ecf
cmp dword [esp + 0x1c], 0
jne 0x10049bbe
push ebp
call fcn.1004d930
test eax, eax
jne 0x10049ecd
push ebp
call fcn.1004d720
test eax, eax
jne 0x10049ecd
mov eax, dword [esp + 0x24]
test dword [eax + 0xe4], 0x80000
jne 0x10049ecd
push ebx
push edi
call fcn.1004c380
test eax, eax
js 0x10049ecf
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x14]
push edi
call fcn.1003c250
test eax, eax
js 0x10049ecf
push 0x10005584
push dword [esp + 0x1c]
push edi
call fcn.1003cf10
mov ebx, eax
test ebx, ebx
js 0x10049b34
mov ecx, ebp
lea edx, [ecx + 2]
jmp 0x10049b00
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10049b00
sub ecx, edx
sar ecx, 1
push 1
lea eax, [ecx + ecx]
push eax
push ebp
push dword [esp + 0x24]
push edi
call fcn.1003c740
mov ebx, eax
test ebx, ebx
js 0x10049b34
push 1
push dword [esp + 0x1c]
push edi
call fcn.1003cd50
mov ebx, eax
push dword [esp + 0x18]
push edi
call fcn.1003bde0
mov dword [esp + 0x18], 0xffffffff
cmp ebx, 0xfffff9bf
je 0x10049ecd
test ebx, ebx
jns 0x10049b6d
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1011720d
add esp, 0x7c
ret 0x14
mov ebx, dword [esp + 0x2c]
push 0x10006ad0
push dword [esp + 0x14]
push ebx
push edi
call fcn.1003d190
test eax, eax
js 0x10049ecf
imul eax, dword [ebx], 0x64
mov ecx, dword [esi + 0x44]
or ecx, 0x2000
push 1
mov dword [eax + 0x101395c4], ecx
imul ecx, dword [ebx], 0x64
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10139590], eax
imul eax, dword [ebx], 0x64
or dword [eax + 0x101395e0], 1
mov eax, dword [ebx]
or dword [esi + 0x60], 1
jmp 0x10049ec3
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push 1
push 0x38
push eax
push 0
push ebx
push edi
call fcn.1003c4a0
test eax, eax
js 0x10049ecf
lea eax, [esp + 0x50]
push eax
push ebx
push edi
call fcn.10046850
mov ebx, eax
test ebx, ebx
js 0x10049da2
cmp dword [esp + 0x30], 0
jne 0x10049c24
mov eax, dword [esi + 0x44]
test al, al
jns 0x10049c24
test al, 0x10
jne 0x10049c24
push 0
push 0
push 0
push 0xffffe016
push 0
push 0
push ebp
push edi
call fcn.100377a0
mov ebx, 0xfffff88d
jmp 0x10049da2
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
or dword [esi + 0x44], 8
push eax
push ebp
push 0x10002410
push ebx
push edi
call fcn.10046ca0
test eax, eax
js 0x10049ecf
cmp dword [esp + 0x1c], 0
je 0x10049c54
or dword [esi + 0x44], 0x20000
push esi
push ebp
push ebx
push edi
call fcn.1004a200
mov ebx, eax
test ebx, ebx
js 0x10049da2
push 0
push 0x18
lea eax, [esp + 0x40]
push eax
push 0x10004c20
push dword [esp + 0x20]
push edi
call fcn.1003c4a0
mov ebx, eax
test ebx, ebx
js 0x10049da2
mov eax, dword [esp + 0x3c]
push 0
push 0x18
mov dword [esi + 0x20], eax
lea eax, [esp + 0x40]
push eax
push 0x10004c60
push dword [esp + 0x20]
push edi
call fcn.1003c4a0
mov ebx, eax
test ebx, ebx
js 0x10049da2
test dword [esi + 0x44], 0x20000
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x18], eax
je 0x10049cdc
push ebp
push esi
push dword [esp + 0x18]
push dword [esp + 0x20]
push edi
call fcn.1004bfc0
mov ebx, eax
test ebx, ebx
js 0x10049da2
push 8
push 4
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
push edi
call fcn.1003b6e0
mov ebx, eax
test ebx, ebx
js 0x10049da2
push 8
push 4
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
push edi
call fcn.1003b6e0
mov ebx, eax
test ebx, ebx
js 0x10049da2
cmp dword [esp + 0x28], 0x30000
jbe 0x10049d4e
cmp dword [esp + 0x1c], 0
je 0x10049d4e
push 0
push 0x18
lea eax, [esp + 0x40]
push eax
push 0x10004c74
push dword [esp + 0x20]
push edi
call fcn.1003c4a0
mov ebx, eax
test ebx, ebx
js 0x10049da2
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x1c], eax
jmp 0x10049d55
mov dword [esi + 0x1c], 0xffffffff
movzx eax, word [esi + 0x4c]
test ax, ax
je 0x10049da2
shl eax, 3
push eax
call fcn.101174f0
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
jne 0x10049d8b
pop edi
pop esi
pop ebp
mov eax, 0xfffffc0d
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1011720d
add esp, 0x7c
ret 0x14
lea ecx, [esp + 0x50]
push ecx
push dword [esp + 0x14]
push ebp
push eax
push dword [esp + 0x24]
push edi
call fcn.10047040
mov ebx, eax
push dword [esp + 0x54]
push edi
call fcn.1003bde0
test ebx, ebx
js 0x10049b56
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x14]
and eax, 4
mov dword [esp + 0xa0], eax
jne 0x10049df9
test byte [esi + 0x44], 0x40
je 0x10049def
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push edi
call fcn.1004bd20
test eax, eax
js 0x10049ecf
mov eax, dword [esp + 0xa0]
jmp 0x10049e01
mov dword [esp + 0x20], 1
jmp 0x10049e01
mov dword [esp + 0x20], 0
test eax, eax
jne 0x10049e1f
test byte [esi + 0x44], 0x40
je 0x10049e1f
push ebp
push dword [esp + 0x14]
push ebx
push edi
call fcn.10048c70
test eax, eax
js 0x10049ecf
push dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
push ebx
call fcn.1004d9c0
mov eax, dword [esp + 0x24]
test byte [eax + 0xe4], 0x10
jne 0x10049ecd
push 0x100069f0
push ebx
mov ebx, dword [esp + 0x34]
push ebx
push edi
call fcn.1003d190
test eax, eax
js 0x10049ecf
imul eax, dword [ebx], 0x64
mov ecx, dword [esi + 0x44]
or ecx, 0x2000
push dword [esp + 0x20]
mov dword [eax + 0x101395c4], ecx
imul ecx, dword [ebx], 0x64
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10139590], eax
imul eax, dword [ebx], 0x64
movdqu xmm0, xmmword [esi]
add eax, 0x10139580
movdqu xmmword [eax], xmm0
mov eax, dword [esi + 0x18]
imul ecx, dword [ebx], 0x64
mov dword [ecx + 0x10139598], eax
imul ecx, dword [ebx], 0x64
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x1013959c], eax
imul ecx, dword [ebx], 0x64
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x10139594], eax
imul ecx, dword [ebx], 0x64
mov eax, dword [esi + 0x20]
mov dword [ecx + 0x101395a0], eax
imul ecx, dword [ebx], 0x64
mov eax, dword [esi + 0x48]
mov dword [ecx + 0x101395c8], eax
mov eax, dword [ebx]
mov dword [esi + 0x50], eax
push dword [ebx]
call fcn.1004d9c0
xor eax, eax
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011720d
add esp, 0x7c
ret 0x14