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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100bb9c0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x102c0850]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x102c0850]
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 0x10047470
mov al, byte [esi]
cmp al, 0x2b
je 0x10047469
cmp al, 0x2d
jne 0x10047470
mov ebx, 1
jmp 0x10047472
xor ebx, ebx
mov eax, dword [ecx + 0x14]
and eax, 0x3000
mov dword [esp + 0x14], ebx
cmp eax, 0x3000
je 0x1004748c
mov edx, 0x1029e4c0
jmp 0x100474b0
lea eax, [ebx + 2]
mov edx, 0x1029e4b4
cmp eax, edi
ja 0x100474b0
cmp byte [esi + ebx], 0x30
jne 0x100474b0
mov cl, byte [esi + ebx + 1]
cmp cl, 0x78
je 0x100474ac
cmp cl, 0x58
jne 0x100474b0
mov dword [esp + 0x14], eax
push edx
push esi
call fcn.1008f380
mov dword [esp + 0x28], eax
mov eax, 0x2e
mov word [esp + 0x54], ax
call fcn.1008edb2
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x54], al
lea eax, [esp + 0x54]
push eax
push esi
call fcn.1008f380
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
call fcn.100196f0
mov dword [esp + 0x78], 0
push eax
call fcn.10003b30
add esp, 4
mov ebx, eax
mov dword [esp + 0x78], 0xffffffff
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10047526
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x10047526
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.10048140
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.100196f0
mov byte [esp + 0x78], 2
push eax
call fcn.100487e0
add esp, 4
mov ebx, eax
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100475c7
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x100475c7
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [esp + 0x50]
mov ecx, ebx
push eax
call fcn.1001cc40
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 0x10047602
mov eax, dword [ebp + 0x24]
push eax
push edx
lea ecx, [edx + eax]
mov dword [esp + 0x1c], ecx
jmp 0x10047653
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.100480a0
push dword [esp + 0x18]
lea eax, [edi + 1]
push dword [ebp + 0x28]
lea ecx, [esp + 0x3c]
push eax
call fcn.100480a0
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.100480a0
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 0x100477a0
lea esp, [esp]
test al, al
jle 0x100477a0
mov edx, dword [esp + 0x10]
movsx edi, al
mov eax, edx
sub eax, dword [esp + 0x14]
cmp edi, eax
jae 0x100477a0
sub edx, edi
mov dword [esp + 0x10], edx
cmp esi, edx
jb 0x100477ce
or eax, 0xffffffff
sub eax, esi
cmp eax, 1
jbe 0x100477c4
lea edi, [esi + 1]
cmp edi, 0x7ffffffe
ja 0x100477c4
cmp ecx, edi
jae 0x100476dd
push esi
push edi
lea ecx, [esp + 0x3c]
call fcn.10003f00
mov edx, dword [esp + 0x10]
jmp 0x100476f6
test edi, edi
jne 0x10047700
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 0x1004778c
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 0x10047758
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x20]
add eax, edx
push eax
push dword [esp + 0x28]
call fcn.1008e0b0
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 0x10047680
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x24]
mov edi, dword [edx + 0x20]
test eax, eax
jl 0x100477d8
jg 0x100477b4
test edi, edi
je 0x100477d8
mov dword [esp + 0x28], eax
cmp edi, esi
jbe 0x100477d8
mov dword [esp + 0x28], eax
sub edi, esi
jmp 0x100477da
push str.string_too_long
call fcn.10089e8d
push str.invalid_string_position
call fcn.10089ebb
xor edi, edi
mov eax, dword [edx + 0x14]
mov ebx, dword [ebp + 8]
and eax, 0x1c0
cmp eax, 0x40
je 0x1004788b
cmp eax, 0x100
je 0x10047841
push edi
push dword [ebp + 0x1c]
lea eax, [esp + 0x2c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push ebx
call fcn.10047df0
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.10047d70
add esp, 0x30
jmp 0x100478b0
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.10047d70
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.10047df0
add esp, 0x30
xor edi, edi
jmp 0x100478b0
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.10047d70
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.10047d70
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.10047df0
add esp, 0x30
mov byte [esp + 0x78], 1
cmp dword [esp + 0x64], 0x10
jb 0x10047931
push dword [esp + 0x50]
call fcn.1008dfdb
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 0x10047961
push dword [esp + 0x34]
call fcn.1008dfdb
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.1008de57
mov esp, ebp
pop ebp
ret