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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b5490
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1029c850]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x1029c850]
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 0x10047030
mov al, byte [esi]
cmp al, 0x2b
je 0x10047029
cmp al, 0x2d
jne 0x10047030
mov ebx, 1
jmp 0x10047032
xor ebx, ebx
mov eax, dword [ecx + 0x14]
and eax, 0x3000
mov dword [esp + 0x14], ebx
cmp eax, 0x3000
je 0x1004704c
mov edx, 0x1027acf0
jmp 0x10047070
lea eax, [ebx + 2]
mov edx, 0x1027ace8
cmp eax, edi
ja 0x10047070
cmp byte [esi + ebx], 0x30
jne 0x10047070
mov cl, byte [esi + ebx + 1]
cmp cl, 0x78
je 0x1004706c
cmp cl, 0x58
jne 0x10047070
mov dword [esp + 0x14], eax
push edx
push esi
call fcn.1008af00
mov dword [esp + 0x28], eax
mov eax, 0x2e
mov word [esp + 0x54], ax
call fcn.1008a932
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x54], al
lea eax, [esp + 0x54]
push eax
push esi
call fcn.1008af00
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
call fcn.10019630
mov dword [esp + 0x78], 0
push eax
call fcn.10003930
add esp, 4
mov ebx, eax
mov dword [esp + 0x78], 0xffffffff
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100470e6
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x100470e6
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.10047d00
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.10019630
mov byte [esp + 0x78], 2
push eax
call fcn.100483a0
add esp, 4
mov ebx, eax
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10047187
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x10047187
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 0x100471c2
mov eax, dword [ebp + 0x24]
push eax
push edx
lea ecx, [edx + eax]
mov dword [esp + 0x1c], ecx
jmp 0x10047213
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.10047c60
push dword [esp + 0x18]
lea eax, [edi + 1]
push dword [ebp + 0x28]
lea ecx, [esp + 0x3c]
push eax
call fcn.10047c60
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.10047c60
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 0x10047360
lea esp, [esp]
test al, al
jle 0x10047360
mov edx, dword [esp + 0x10]
movsx edi, al
mov eax, edx
sub eax, dword [esp + 0x14]
cmp edi, eax
jae 0x10047360
sub edx, edi
mov dword [esp + 0x10], edx
cmp esi, edx
jb 0x1004738e
or eax, 0xffffffff
sub eax, esi
cmp eax, 1
jbe 0x10047384
lea edi, [esi + 1]
cmp edi, 0x7ffffffe
ja 0x10047384
cmp ecx, edi
jae 0x1004729d
push esi
push edi
lea ecx, [esp + 0x3c]
call fcn.10003d00
mov edx, dword [esp + 0x10]
jmp 0x100472b6
test edi, edi
jne 0x100472c0
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 0x1004734c
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 0x10047318
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x20]
add eax, edx
push eax
push dword [esp + 0x28]
call fcn.10089c30
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 0x10047240
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x24]
mov edi, dword [edx + 0x20]
test eax, eax
jl 0x10047398
jg 0x10047374
test edi, edi
je 0x10047398
mov dword [esp + 0x28], eax
cmp edi, esi
jbe 0x10047398
mov dword [esp + 0x28], eax
sub edi, esi
jmp 0x1004739a
push str.string_too_long
call fcn.10085a08
push str.invalid_string_position
call fcn.10085a36
xor edi, edi
mov eax, dword [edx + 0x14]
mov ebx, dword [ebp + 8]
and eax, 0x1c0
cmp eax, 0x40
je 0x1004744b
cmp eax, 0x100
je 0x10047401
push edi
push dword [ebp + 0x1c]
lea eax, [esp + 0x2c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push ebx
call fcn.100479b0
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.10047930
add esp, 0x30
jmp 0x10047470
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.10047930
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.100479b0
add esp, 0x30
xor edi, edi
jmp 0x10047470
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.10047930
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.10047930
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.100479b0
add esp, 0x30
mov byte [esp + 0x78], 1
cmp dword [esp + 0x64], 0x10
jb 0x100474f1
push dword [esp + 0x50]
call fcn.10089b56
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 0x10047521
push dword [esp + 0x34]
call fcn.10089b56
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.100899d2
mov esp, ebp
pop ebp
ret