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

Disassembly:
push ebp
mov eax, 0x1040
lea ebp, [esp - 0xfc0]
call fcn.0103c7f0
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 0x1047b41
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [edi + 4]
push 0x1000
push eax
call fcn.0103e631
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.0103ef02
add esp, 0x1c
test eax, eax
mov dword [ebp - 0x48], eax
jl 0x1047f7b
cmp dword [ebp - 0x68], 0
mov esi, dword [ebx + 0x448]
jne 0x1047c6b
lea eax, [esi + 0x1c]
push 0x1016980
push eax
call fcn.0103e13c
test eax, eax
pop ecx
pop ecx
jne 0x1047be1
push 0x6f9e
push 0x800c0063
push dword [ebp - 0x4c]
call fcn.0103e4ac
add esp, 0xc
jmp 0x1047f78
test byte [esi + 0x8c], 1
je 0x1047bf7
push 0x61b9
push dword [ebp - 0x4c]
jmp 0x1047e69
mov eax, dword [ebp - 0x50]
cmp eax, dword [esi + 0x54]
jne 0x1047c39
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x60]
jne 0x1047c39
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x5c]
jne 0x1047c39
mov eax, dword [esi + 0x68]
xor edx, edx
mov ecx, 0x3e8
div ecx
cmp dword [edi + 0x1c], eax
jne 0x1047c39
movzx eax, word [esi + 0x120]
cmp dword [edi + 0x28], eax
jne 0x1047c39
mov eax, dword [esi + 0x58]
sub eax, 0x400
cmp dword [edi + 0x2c], eax
je 0x1047c47
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 0x1047c71
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 0x1047cf0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jbe 0x1047cdf
push 0x6204
jmp 0x1047bef
push dword [edi + 0x24]
lea eax, [ebx + 0x232]
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push dword [ebp - 0x4c]
push edi
call fcn.0103f40d
cmp dword [ebp - 0x68], 0
pop ecx
pop ecx
je 0x1047f7b
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 sub.msvcrt.dll_memset
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.0103f181
add esp, 0x18
test eax, eax
mov dword [ebp - 0x48], eax
jl 0x1047f7b
mov eax, dword [ebp - 0x58]
shr eax, 0xc
cmp eax, dword [esi + 0x58]
jbe 0x1047d85
push 0x6210
jmp 0x1047bef
test byte [edi + 0xc], 0x20
je 0x1047d98
mov eax, dword [ebx + 0x448]
mov dword [eax + 0x3c], 1
cmp dword [ebp - 0x58], 0
je 0x1047dad
cmp dword [ebp + 0xfd8], 1
je 0x1047dad
test byte [edi + 0xd], 1
je 0x1047dc8
mov esi, dword [ebp - 0x4c]
push esi
push ebx
push edi
call fcn.010478ac
add esp, 0xc
test eax, eax
mov dword [ebp - 0x48], eax
jl 0x1047f7b
jmp 0x1047dcb
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.01047798
add esp, 0x14
test eax, eax
mov dword [ebp - 0x48], eax
jge 0x1047dfc
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
cmp eax, 0x61b9
jne 0x1047f7b
test byte [ebp + 0x6c], 1
je 0x1047e0f
test byte [edi + 0xd], 0x10
jne 0x1047e0f
push 0x61b9
jmp 0x1047e68
push 0x10
lea eax, [ebp - 0x3c]
push 0x1016990
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x1047e2d
push 0x61b3
jmp 0x1047e68
cmp dword [ebp - 0x48], 0
jge 0x1047e54
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
cmp eax, 0x61b9
jne 0x1047e54
lea eax, [ebp - 0x80]
push eax
add ebx, 0x28
push ebx
call fcn.0103f279
pop ecx
pop ecx
jmp 0x1047f7b
push 1
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jne 0x1047e75
push 0x61c9
push esi
call fcn.0103e4d6
pop ecx
pop ecx
jmp 0x1047f78
push 0x78
lea eax, [ebp + 0x1b8]
push eax
mov eax, dword [ebx + 0x448]
add eax, 0x90
push eax
call sub.msvcrt.dll_memcpy
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.0103e585
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 0x1047f12
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