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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [ebp + 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 0x20], eax
movsd dword es:[edi], dword [esi]
mov eax, dword [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x104c969
test byte [eax + 0x1c], 1
je 0x104c969
cmp byte [eax + 0x19], 4
jb 0x104c969
push 0x1004718
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov edi, dword [ebp + 0x20]
test edi, edi
jne 0x104c984
push 0x10048b4
push 0x187
push 0x1004730
call fcn.0107b644
mov dword [ebx + 0x88], edi
mov dword [ebx + 0x14], 0xa
mov eax, dword [0x111024c]
cmp eax, esi
je 0x104c9b9
test byte [eax + 0x1c], 1
je 0x104c9b9
cmp byte [eax + 0x19], 4
jb 0x104c9b9
push ebx
push 0x1004718
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [ebp - 0x20]
mov esi, eax
lea edi, [ebx + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x10]
lea edi, [ebx + 0x50]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp + 0x1c]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x60], ecx
mov eax, dword [eax + 0x38]
mov dword [ebx + 0x80], eax
lea eax, [ebx + 0x8c]
xor edi, edi
mov dword [ebx + 0x84], edi
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [ebp - 0x15]
push eax
mov byte [ebp - 0x15], 0
call fcn.01081408
cmp eax, edi
mov dword [ebp - 0x1c], eax
jl 0x104cb2b
cmp byte [ebp - 0x15], 0
mov esi, dword [ebp - 0x20]
je 0x104ca48
mov al, byte [esi + 0x21]
mov byte [ebx + 0x7c], al
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104ca48
test byte [eax + 0x1c], 1
je 0x104ca48
cmp byte [eax + 0x19], 4
jb 0x104ca48
push 0x1004718
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push edi
lea eax, [ebx + 0x78]
push eax
push dword [esi + 0x1c]
call fcn.0107c9fc
cmp eax, edi
mov dword [ebp - 0x1c], eax
jl 0x104cb2b
push edi
lea eax, [ebx + 0x74]
push eax
push dword [esi + 0x18]
call fcn.0107c9fc
cmp eax, edi
mov dword [ebp - 0x1c], eax
jl 0x104cb2b
push 4
lea eax, [ebx + 0x50]
pop ecx
mov edi, 0x1007124
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x104cafe
push edx
lea ecx, [ebx + 0x68]
push ecx
push edx
push eax
call fcn.0107e13f
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x104cb2b
lea esi, [ebx + 0x64]
push esi
push 2
push dword [ebx + 0x60]
lea edi, [ebx + 0x50]
push edi
call fcn.010d6ba5
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x104cafe
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104caf7
test byte [eax + 0x1c], 1
je 0x104caf7
cmp byte [eax + 0x19], 3
jb 0x104caf7
push edi
lea ecx, [ebp - 0x84]
call fcn.0107c998
push eax
mov eax, dword [0x111024c]
push 0x1004718
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
and dword [ebp - 0x1c], 0
and dword [esi], 0
mov esi, dword [ebp - 0x20]
push dword [esi + 0x10]
call fcn.0107dd0d
test al, al
je 0x104cb2b
cmp dword [ebx + 0x68], 0
jne 0x104cb2b
lea eax, [ebx + 0x6c]
push eax
movzx eax, word [esi + 0x3c]
add ebx, 0x70
push ebx
push dword [esi + 0x40]
push eax
call fcn.0107d627
mov dword [ebp - 0x1c], eax
mov eax, dword [0x111024c]
pop edi
pop esi
pop ebx
cmp eax, 0x111024c
je 0x104cb58
test byte [eax + 0x1c], 1
je 0x104cb58
cmp byte [eax + 0x19], 4
jb 0x104cb58
push 0x1004718
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0106f798
leave
ret 0x1c