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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b9bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x102bd850]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x102bd850]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x30]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
test edi, edi
je 0x10047970
mov al, byte [esi]
cmp al, 0x2b
je 0x10047969
cmp al, 0x2d
jne 0x10047970
mov ebx, 1
jmp 0x10047972
xor ebx, ebx
mov eax, dword [ecx + 0x14]
and eax, 0x3000
mov dword [esp + 0x14], ebx
cmp eax, 0x3000
je 0x1004798c
mov edx, 0x1029bf18
jmp 0x100479b0
lea eax, [ebx + 2]
mov edx, 0x1029bf1c
cmp eax, edi
ja 0x100479b0
cmp byte [esi + ebx], 0x30
jne 0x100479b0
mov cl, byte [esi + ebx + 1]
cmp cl, 0x78
je 0x100479ac
cmp cl, 0x58
jne 0x100479b0
mov dword [esp + 0x14], eax
push edx
push esi
call fcn.1008f590
mov dword [esp + 0x28], eax
mov eax, 0x2e
mov word [esp + 0x54], ax
call fcn.1008efc2
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x54], al
lea eax, [esp + 0x54]
push eax
push esi
call fcn.1008f590
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
call fcn.10019610
mov dword [esp + 0x78], 0
push eax
call fcn.10003980
add esp, 4
mov ebx, eax
mov dword [esp + 0x78], 0xffffffff
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10047a26
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x10047a26
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebx]
mov ecx, ebx
push 0x30
call dword [eax + 0x30]
movzx eax, ax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
push edi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
call fcn.10048640
mov dword [esp + 0x78], 1
lea eax, [esp + 0x34]
cmp dword [esp + 0x48], 8
mov ecx, ebx
mov edx, dword [ebx]
cmovae eax, dword [esp + 0x34]
push eax
lea eax, [edi + esi]
push eax
push esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
call fcn.10019610
mov byte [esp + 0x78], 2
push eax
call fcn.10048ce0
add esp, 4
mov ebx, eax
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10047ac7
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x10047ac7
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [esp + 0x50]
mov ecx, ebx
push eax
call fcn.1001cbf0
mov byte [esp + 0x78], 3
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x10]
mov edx, dword [esp + 0x20]
push dword [esp + 0x18]
movzx eax, ax
mov dword [esp + 0x28], eax
cmp dword [esp + 0x14], edi
jne 0x10047b02
mov eax, dword [ebp + 0x24]
push eax
push edx
lea ecx, [edx + eax]
mov dword [esp + 0x1c], ecx
jmp 0x10047b53
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 0x24]
push dword [ebp + 0x2c]
push edx
lea ecx, [edi + esi]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x40]
call fcn.100485a0
push dword [esp + 0x18]
lea eax, [edi + 1]
push dword [ebp + 0x28]
lea ecx, [esp + 0x3c]
push eax
call fcn.100485a0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
cmp dword [esp + 0x48], 8
push dword [esp + 0x18]
movzx ecx, ax
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push esi
push edi
mov word [eax + edi*2], cx
lea ecx, [esp + 0x40]
call fcn.100485a0
cmp dword [esp + 0x64], 0x10
lea ebx, [esp + 0x50]
mov ecx, dword [esp + 0x48]
cmovae ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x44]
mov al, byte [ebx]
cmp al, 0x7f
je 0x10047ca0
lea esp, [esp]
test al, al
jle 0x10047ca0
mov edx, dword [esp + 0x10]
movsx edi, al
mov eax, edx
sub eax, dword [esp + 0x14]
cmp edi, eax
jae 0x10047ca0
sub edx, edi
mov dword [esp + 0x10], edx
cmp esi, edx
jb 0x10047cce
or eax, 0xffffffff
sub eax, esi
cmp eax, 1
jbe 0x10047cc4
lea edi, [esi + 1]
cmp edi, 0x7ffffffe
ja 0x10047cc4
cmp ecx, edi
jae 0x10047bdd
push esi
push edi
lea ecx, [esp + 0x3c]
call fcn.10003d50
mov edx, dword [esp + 0x10]
jmp 0x10047bf6
test edi, edi
jne 0x10047c00
cmp ecx, 8
mov dword [esp + 0x44], edi
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
xor ecx, ecx
mov word [eax], cx
mov esi, dword [esp + 0x44]
test edi, edi
mov ecx, dword [esp + 0x48]
setne al
test al, al
je 0x10047c8c
cmp ecx, 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
sub esi, edx
lea edx, [edx + edx]
mov dword [esp + 0x18], edx
lea eax, [eax + 2]
lea eax, [eax + edx]
mov dword [esp + 0x20], eax
je 0x10047c58
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x20]
add eax, edx
push eax
push dword [esp + 0x28]
call fcn.1008e2c0
mov ecx, dword [esp + 0x54]
add esp, 0xc
mov edx, dword [esp + 0x18]
cmp ecx, 8
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x24]
cmovae eax, dword [esp + 0x34]
mov word [eax + edx], cx
lea eax, [esp + 0x34]
cmp dword [esp + 0x48], 8
mov dword [esp + 0x44], edi
cmovae eax, dword [esp + 0x34]
xor ecx, ecx
mov word [eax + edi*2], cx
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
cmp byte [ebx + 1], 0
lea eax, [ebx + 1]
cmovg ebx, eax
mov al, byte [ebx]
cmp al, 0x7f
jne 0x10047b80
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x24]
mov edi, dword [edx + 0x20]
test eax, eax
jl 0x10047cd8
jg 0x10047cb4
test edi, edi
je 0x10047cd8
mov dword [esp + 0x28], eax
cmp edi, esi
jbe 0x10047cd8
mov dword [esp + 0x28], eax
sub edi, esi
jmp 0x10047cda
push str.string_too_long
call fcn.1008a09b
push str.invalid_string_position
call fcn.1008a0c9
xor edi, edi
mov eax, dword [edx + 0x14]
mov ebx, dword [ebp + 8]
and eax, 0x1c0
cmp eax, 0x40
je 0x10047d8b
cmp eax, 0x100
je 0x10047d41
push edi
push dword [ebp + 0x1c]
lea eax, [esp + 0x2c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push ebx
call fcn.100482f0
push dword [esp + 0x2c]
mov ecx, eax
xor edi, edi
cmp dword [esp + 0x64], 8
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
push eax
push dword [ecx + 4]
lea eax, [esp + 0x48]
push dword [ecx]
push eax
push ebx
call fcn.10048270
add esp, 0x30
jmp 0x10047db0
push dword [esp + 0x14]
cmp ecx, 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x30]
push dword [ebp + 0x10]
push eax
push ebx
call fcn.10048270
mov ecx, eax
push edi
push dword [ebp + 0x1c]
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x44]
push dword [ecx + 4]
push dword [ecx]
push eax
push ebx
call fcn.100482f0
add esp, 0x30
xor edi, edi
jmp 0x10047db0
push dword [esp + 0x14]
cmp ecx, 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x30]
push dword [ebp + 0x10]
push eax
push ebx
call fcn.10048270
add esp, 0x18
mov edx, dword [eax]
cmp dword [esp + 0x48], 8
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
sub esi, ecx
push esi
lea eax, [eax + ecx*2]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call fcn.10048270
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
push edi
mov ecx, dword [eax]
push dword [ebp + 0x1c]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
push eax
push ecx
push esi
push ebx
mov dword [ebp + 0x14], eax
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
call fcn.100482f0
add esp, 0x30
mov byte [esp + 0x78], 1
cmp dword [esp + 0x64], 0x10
jb 0x10047e31
push dword [esp + 0x50]
call fcn.1008e1e9
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x10047e61
push dword [esp + 0x34]
call fcn.1008e1e9
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
mov eax, esi
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1008e065
mov esp, ebp
pop ebp
ret