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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100bd150
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100fa850]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x100fa850]
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 0x10048590
mov al, byte [esi]
cmp al, 0x2b
je 0x10048589
cmp al, 0x2d
jne 0x10048590
mov ebx, 1
jmp 0x10048592
xor ebx, ebx
mov eax, dword [ecx + 0x14]
and eax, 0x3000
mov dword [esp + 0x14], ebx
cmp eax, 0x3000
je 0x100485ac
mov edx, 0x100d7fe8
jmp 0x100485d0
lea eax, [ebx + 2]
mov edx, 0x100d7fe4
cmp eax, edi
ja 0x100485d0
cmp byte [esi + ebx], 0x30
jne 0x100485d0
mov cl, byte [esi + ebx + 1]
cmp cl, 0x78
je 0x100485cc
cmp cl, 0x58
jne 0x100485d0
mov dword [esp + 0x14], eax
push edx
push esi
call fcn.10090ae0
mov dword [esp + 0x28], eax
mov eax, 0x2e
mov word [esp + 0x54], ax
call fcn.10090512
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x54], al
lea eax, [esp + 0x54]
push eax
push esi
call fcn.10090ae0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
call fcn.10019820
mov dword [esp + 0x78], 0
push eax
call fcn.10003c10
add esp, 4
mov ebx, eax
mov dword [esp + 0x78], 0xffffffff
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10048646
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x10048646
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.10049260
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.10019820
mov byte [esp + 0x78], 2
push eax
call fcn.10049900
add esp, 4
mov ebx, eax
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100486e7
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x100486e7
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [esp + 0x50]
mov ecx, ebx
push eax
call fcn.1001d690
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 0x10048722
mov eax, dword [ebp + 0x24]
push eax
push edx
lea ecx, [edx + eax]
mov dword [esp + 0x1c], ecx
jmp 0x10048773
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.100491c0
push dword [esp + 0x18]
lea eax, [edi + 1]
push dword [ebp + 0x28]
lea ecx, [esp + 0x3c]
push eax
call fcn.100491c0
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.100491c0
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 0x100488c0
lea esp, [esp]
test al, al
jle 0x100488c0
mov edx, dword [esp + 0x10]
movsx edi, al
mov eax, edx
sub eax, dword [esp + 0x14]
cmp edi, eax
jae 0x100488c0
sub edx, edi
mov dword [esp + 0x10], edx
cmp esi, edx
jb 0x100488ee
or eax, 0xffffffff
sub eax, esi
cmp eax, 1
jbe 0x100488e4
lea edi, [esi + 1]
cmp edi, 0x7ffffffe
ja 0x100488e4
cmp ecx, edi
jae 0x100487fd
push esi
push edi
lea ecx, [esp + 0x3c]
call fcn.10004020
mov edx, dword [esp + 0x10]
jmp 0x10048816
test edi, edi
jne 0x10048820
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 0x100488ac
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 0x10048878
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x20]
add eax, edx
push eax
push dword [esp + 0x28]
call fcn.1008f810
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 0x100487a0
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x24]
mov edi, dword [edx + 0x20]
test eax, eax
jl 0x100488f8
jg 0x100488d4
test edi, edi
je 0x100488f8
mov dword [esp + 0x28], eax
cmp edi, esi
jbe 0x100488f8
mov dword [esp + 0x28], eax
sub edi, esi
jmp 0x100488fa
push str.string_too_long
call fcn.1008b5ed
push str.invalid_string_position
call fcn.1008b61b
xor edi, edi
mov eax, dword [edx + 0x14]
mov ebx, dword [ebp + 8]
and eax, 0x1c0
cmp eax, 0x40
je 0x100489ab
cmp eax, 0x100
je 0x10048961
push edi
push dword [ebp + 0x1c]
lea eax, [esp + 0x2c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push ebx
call fcn.10048f10
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.10048e90
add esp, 0x30
jmp 0x100489d0
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.10048e90
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.10048f10
add esp, 0x30
xor edi, edi
jmp 0x100489d0
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.10048e90
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.10048e90
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.10048f10
add esp, 0x30
mov byte [esp + 0x78], 1
cmp dword [esp + 0x64], 0x10
jb 0x10048a51
push dword [esp + 0x50]
call fcn.1008f73b
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 0x10048a81
push dword [esp + 0x34]
call fcn.1008f73b
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.1008f5b7
mov esp, ebp
pop ebp
ret