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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4da1e7
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x510918]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x510918]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov dword [esp + 0x28], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], eax
push 1
xor eax, eax
push 0x4ed438
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1c], esi
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], 0
mov word [esp + 0xa0], ax
call fcn.00402f90
sub esp, 8
lea eax, [esp + 0xa0]
push eax
mov edx, esi
lea ecx, [esp + 0x24]
mov dword [esp + 0xf4], 0
call fcn.0042e01c
add esp, 0xc
mov byte [esp + 0xe8], 2
cmp dword [esp + 0xac], 8
jb 0x4182da
push dword [esp + 0x98]
call fcn.004a295f
add esp, 4
xor eax, eax
mov word [esp + 0x98], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov edi, eax
cmp eax, dword [esp + 0x1c]
je 0x4185f2
lea ebx, [ebx]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4185e5
cmp dword [edi + 0x14], 8
jb 0x418325
mov eax, dword [edi]
jmp 0x418327
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4185e5
xor eax, eax
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
call fcn.00402c10
mov byte [esp + 0xe8], 3
mov eax, dword [0x4ed4ac]
movq xmm0, qword [str..patch]
mov dword [esp + 0xd0], eax
mov ax, word [0x4ed4b0]
mov word [esp + 0xd4], ax
xor eax, eax
movq qword [esp + 0xc8], xmm0
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], ax
cmp word [esp + 0xc8], ax
je 0x4183cf
lea eax, [esp + 0xc8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4183c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0xb8]
call fcn.00402f90
mov byte [esp + 0x2c], 0
push dword [esp + 0x2c]
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x3c]
call fcn.0041cb10
add esp, 4
test al, al
sete bl
cmp dword [esp + 0xc4], 8
jb 0x41841e
push dword [esp + 0xb0]
call fcn.004a295f
add esp, 4
test bl, bl
je 0x418446
mov byte [esp + 0xe8], 2
cmp dword [esp + 0x4c], 8
jb 0x4185e5
push dword [esp + 0x38]
call fcn.004a295f
add esp, 4
jmp 0x4185e5
mov eax, dword [esp + 0x48]
lea ecx, [eax - 6]
cmp eax, ecx
jb 0x41870c
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x48], ecx
mov word [eax + ecx*2], dx
lea eax, [esp + 0x38]
push eax
mov edx, esi
lea ecx, [esp + 0x6c]
call fcn.0042ef6b
add esp, 4
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0xec], 4
call fcn.0042ef6b
add esp, 4
push edi
mov edx, esi
lea ecx, [esp + 0x54]
mov byte [esp + 0xec], 5
call fcn.0042ef6b
add esp, 4
push 1
mov byte [esp + 0xec], 6
call fcn.004a1849
mov esi, eax
mov dword [esp + 0x34], esi
mov eax, esp
mov byte [esp + 0xec], 7
mov dword [eax], esi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x3c]
call fcn.0041cb80
add esp, 4
test al, al
mov byte [esp + 0xe8], 6
mov eax, dword [esi]
mov ecx, esi
sete bl
call dword [eax + 8]
test eax, eax
je 0x41850b
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x88]
push eax
test bl, bl
je 0x418528
call fcn.00418720
jmp 0x418531
mov ecx, dword [esp + 0x34]
call fcn.00418880
test al, al
je 0x418665
cmp dword [esp + 0x64], 8
jb 0x41854c
push dword [esp + 0x50]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [esp + 0x94], 8
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jb 0x41857c
push dword [esp + 0x80]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [esp + 0x7c], 8
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
jb 0x4185af
push dword [esp + 0x68]
call fcn.004a295f
add esp, 4
xor eax, eax
mov byte [esp + 0xe8], 2
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
jb 0x4185e1
push dword [esp + 0x38]
call fcn.004a295f
add esp, 4
mov esi, dword [esp + 0x14]
add edi, 0x18
cmp edi, dword [esp + 0x1c]
jne 0x418310
mov bl, 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41863d
mov edi, dword [esp + 0x1c]
mov esi, eax
cmp eax, edi
je 0x418634
cmp dword [esi + 0x14], 8
jb 0x418616
push dword [esi]
call fcn.004a295f
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x418606
mov eax, dword [esp + 0x18]
push eax
call fcn.004a295f
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004a2964
mov esp, ebp
pop ebp
ret 8
cmp dword [esp + 0x64], 8
jb 0x418678
push dword [esp + 0x50]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [esp + 0x94], 8
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jb 0x4186a8
push dword [esp + 0x80]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [esp + 0x7c], 8
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
jb 0x4186db
push dword [esp + 0x68]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
jb 0x418705
push dword [esp + 0x38]
call fcn.004a295f
add esp, 4
xor bl, bl
jmp 0x4185f4
push str.invalid_string_position
call fcn.004a16d3
int3