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

Disassembly:
push ebp
mov eax, 0x1040
lea ebp, [esp - 0xfc0]
call fcn.0103c7c0
mov eax, dword [0x10570e4]
and dword [ebp - 0x60], 0
push ebx
mov ebx, dword [ebp + 0xfc8]
push esi
mov esi, dword [ebp + 0xfdc]
mov dword [ebp + 0xfbc], eax
mov eax, dword [ebp + 0xfd0]
push edi
mov edi, dword [ebp + 0xfcc]
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 0xb8]
test eax, eax
mov dword [ebp - 0x4c], esi
mov dword [ebx + 0x444], eax
je 0x1047ad0
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [edi + 4]
push 0x1000
push eax
call fcn.0103e633
mov ecx, dword [edi + 0x28]
shr eax, 0xc
mov edx, eax
mov dword [ebp - 0x50], eax
imul edx, edx, 0x1010
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x5c], ecx
imul ecx, ecx, 0x1c
add eax, 0x400
mov dword [ebp - 0x64], eax
push esi
lea eax, [eax + eax*2 + 0x4a4]
lea eax, [ecx + eax*2]
lea esi, [ebp - 0x68]
push esi
add eax, edx
push eax
push dword [ebp + 0xfd4]
mov dword [ebp - 0x54], edx
push ebx
mov dword [ebp - 0x6c], ecx
call fcn.0103ef04
add esp, 0x1c
test eax, eax
mov dword [ebp - 0x48], eax
jl 0x1047f0a
cmp dword [ebp - 0x68], 0
mov esi, dword [ebx + 0x448]
jne 0x1047bfa
lea eax, [esi + 0x1c]
push 0x1016980
push eax
call fcn.0103e13e
test eax, eax
pop ecx
pop ecx
jne 0x1047b70
push 0x6f9e
push 0x800c0063
push dword [ebp - 0x4c]
call fcn.0103e4ae
add esp, 0xc
jmp 0x1047f07
test byte [esi + 0x8c], 1
je 0x1047b86
push 0x61b9
push dword [ebp - 0x4c]
jmp 0x1047df8
mov eax, dword [ebp - 0x50]
cmp eax, dword [esi + 0x54]
jne 0x1047bc8
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x60]
jne 0x1047bc8
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x5c]
jne 0x1047bc8
mov eax, dword [esi + 0x68]
xor edx, edx
mov ecx, 0x3e8
div ecx
cmp dword [edi + 0x1c], eax
jne 0x1047bc8
movzx eax, word [esi + 0x120]
cmp dword [edi + 0x28], eax
jne 0x1047bc8
mov eax, dword [esi + 0x58]
sub eax, 0x400
cmp dword [edi + 0x2c], eax
je 0x1047bd6
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push 0x620e
push eax
call dword [ecx + 0x18]
movzx ecx, word [esi + 0x120]
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x5c], ecx
imul ecx, ecx, 0x1c
mov dword [ebp - 0x50], edx
imul edx, edx, 0x1010
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], edx
jmp 0x1047c00
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x6c]
inc dword [esi + 0x40]
lea eax, [esi + 0x108]
mov dword [ebx + 0x44c], eax
lea eax, [esi + 0x11c]
mov dword [ebx + 0x450], eax
lea eax, [esi + 0x92c]
mov dword [ebx + 0x454], eax
lea eax, [esi + 0x93c]
mov dword [ebx + 0x458], eax
lea eax, [esi + 0x948]
mov dword [ebx + 0x45c], eax
add eax, edx
mov dword [ebx + 0x460], eax
add eax, ecx
mov dword [ebx + 0x464], eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x1047c7f
push eax
call dword [fcn.010010e0]
cmp eax, 0x104
jbe 0x1047c6e
push 0x6204
jmp 0x1047b7e
push dword [edi + 0x24]
lea eax, [ebx + 0x232]
push eax
call fcn.01054a36
pop ecx
pop ecx
push dword [ebp - 0x4c]
push edi
call fcn.0103f40f
cmp dword [ebp - 0x68], 0
pop ecx
pop ecx
je 0x1047f0a
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x1c]
imul eax, eax, 0x3e8
push 0xc
push 0
push esi
mov dword [esi + 0x68], eax
call fcn.0101913a
push dword [ebp - 0x4c]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov ecx, dword [ebx + 0x44c]
mov dword [ecx + 0xc], 0xfffff
mov ecx, dword [ebx + 0x44c]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x58]
push eax
push dword [ebx + 0xc]
call fcn.0103f183
add esp, 0x18
test eax, eax
mov dword [ebp - 0x48], eax
jl 0x1047f0a
mov eax, dword [ebp - 0x58]
shr eax, 0xc
cmp eax, dword [esi + 0x58]
jbe 0x1047d14
push 0x6210
jmp 0x1047b7e
test byte [edi + 0xc], 0x20
je 0x1047d27
mov eax, dword [ebx + 0x448]
mov dword [eax + 0x3c], 1
cmp dword [ebp - 0x58], 0
je 0x1047d3c
cmp dword [ebp + 0xfd8], 1
je 0x1047d3c
test byte [edi + 0xd], 1
je 0x1047d57
mov esi, dword [ebp - 0x4c]
push esi
push ebx
push edi
call fcn.0104783b
add esp, 0xc
test eax, eax
mov dword [ebp - 0x48], eax
jl 0x1047f0a
jmp 0x1047d5a
mov esi, dword [ebp - 0x4c]
and word [ebp + 0x6c], 0
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push ebx
call fcn.01047727
add esp, 0x14
test eax, eax
mov dword [ebp - 0x48], eax
jge 0x1047d8b
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
cmp eax, 0x61b9
jne 0x1047f0a
test byte [ebp + 0x6c], 1
je 0x1047d9e
test byte [edi + 0xd], 0x10
jne 0x1047d9e
push 0x61b9
jmp 0x1047df7
push 0x10
lea eax, [ebp - 0x3c]
push 0x1016990
push eax
call fcn.010549fa
add esp, 0xc
test eax, eax
je 0x1047dbc
push 0x61b3
jmp 0x1047df7
cmp dword [ebp - 0x48], 0
jge 0x1047de3
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
cmp eax, 0x61b9
jne 0x1047de3
lea eax, [ebp - 0x80]
push eax
add ebx, 0x28
push ebx
call fcn.0103f27b
pop ecx
pop ecx
jmp 0x1047f0a
push 1
push dword [ebp - 0x2c]
call dword [0x1001088]
test eax, eax
jne 0x1047e04
push 0x61c9
push esi
call fcn.0103e4d8
pop ecx
pop ecx
jmp 0x1047f07
push 0x78
lea eax, [ebp + 0x1b8]
push eax
mov eax, dword [ebx + 0x448]
add eax, 0x90
push eax
call fcn.01019146
mov eax, dword [ebx + 0x448]
inc dword [eax + 0x90]
mov eax, dword [ebx + 0x448]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x84], ecx
push dword [ebp - 0x2c]
call fcn.0103e587
mov ecx, dword [ebx + 0x448]
mov dword [ecx + 0x88], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x448]
mov dword [eax + 0x74], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x78], ecx
mov eax, dword [ebx + 0x448]
mov cx, word [ebp + 0x6c]
mov word [eax + 0x8c], cx
mov eax, dword [ebx + 0x448]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x44], ecx
mov eax, dword [ebx + 0x44c]
mov ecx, dword [ebp - 0x54]
add esp, 0x10
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x450]
mov cx, word [ebp - 0x5c]
push 0x3f
mov word [eax + 4], cx
pop edx
mov edi, 0x7e0
mov eax, dword [ebx + 0x450]
movzx esi, word [ebp - 0x60]
lea ecx, [edx + 1]
movzx ecx, cx
lea eax, [edi + eax + 0x10]
dec edx
sub edi, 0x20
mov dword [eax], ecx
mov dword [eax + 0x10], esi
mov dword [ebp - 0x60], ecx
jns 0x1047ea1
mov eax, dword [ebx + 0x450]
mov dword [eax + 8], 1
mov edi, dword [ebx + 0x448]
add edi, 0xc
mov esi, 0x1016990
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 edi, dword [ebx + 0x448]
mov eax, dword [ebp - 0x70]
add edi, 0x1c
mov esi, 0x1016980
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 edx, dword [ebx + 0x448]
mov ecx, dword [eax]
add edx, 0x2c
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 0xfbc]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
call fcn.0101897b
add ebp, 0xfc0
leave
ret