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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
cmp edx, 0x101
jb 0x41859d
cmp byte [eax + 0x100], 0xbf
mov ebx, 0x100
jg 0x418588
cmp byte [eax + 0xff], 0xbf
mov ebx, 0xff
jg 0x418588
cmp byte [eax + 0xfe], 0xbf
mov ebx, 0xfe
jg 0x418588
mov ebx, 0xfd
cmp ebx, edx
jae 0x4185bc
cmp byte [eax + ebx], 0xbf
jg 0x4185be
push ecx
push ebx
push 0
push edx
push eax
call fcn.0041b280
xor ebp, ebp
mov ebx, str.librarycore_src_fmtmod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
mov dword [esp], eax
mov dword [esp + 4], edx
cmp edi, edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebp
jbe 0x4185f0
jmp 0x418672
jne 0x418592
mov dword [esp], eax
xor eax, eax
cmp ebx, edx
mov dword [esp + 4], ebx
mov ebp, str._..._begin___end_______when_slicing___m
mov ebx, str.librarycore_src_fmtmod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
setb al
cmovb ebx, ebp
lea ebp, [eax + eax*4]
mov eax, dword [esp + 0x74]
cmp edi, edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebp
ja 0x418672
cmp esi, edx
ja 0x418672
cmp edi, esi
mov ebp, ecx
jbe 0x4186dc
lea eax, [esp + 0x7c]
lea edx, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0xc], 0x41f590
mov dword [esp + 0x10], 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], fcn.004191f0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], fcn.004191f0
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x4c]
mov dword [esp + 0x38], 0x419430
mov dword [esp + 0x3c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], 0x419430
mov dword [esp + 0x18], 4
lea eax, [esp + 0xc]
push ebp
push eax
call fcn.0041ad00
lea eax, [esp + 0x54]
cmp edi, edx
mov dword [esp + 0xc], 0x41f630
mov dword [esp + 0x10], 3
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
mov eax, esp
mov dword [esp + 0x28], fcn.004191f0
cmova esi, edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x30], 0x419430
mov dword [esp + 0x54], esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 0x419430
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 3
lea eax, [esp + 0xc]
push ecx
push eax
call fcn.0041ad00
test edi, edi
je 0x4186ea
cmp edi, edx
jae 0x4186ea
cmp byte [eax + edi], 0xc0
jl 0x4186ec
mov edi, esi
cmp edi, edx
mov esi, edx
mov dword [esp + 0x5c], edi
jae 0x41872f
mov ebx, edi
mov ecx, eax
xor eax, eax
lea esi, [edi + 1]
sub ebx, 3
cmovb ebx, eax
cmp ebx, esi
jbe 0x418715
push 0x41f664
push esi
push ebx
call fcn.0041b1d0
add esi, ecx
add edi, ecx
sub esi, ecx
sub esi, ebx
mov eax, ecx
nop
test esi, esi
je 0x41872d
dec esi
cmp byte [edi], 0xc0
lea edi, [edi - 1]
jl 0x418720
add esi, ebx
test esi, esi
jne 0x418737
mov edi, edx
jmp 0x41874f
mov edi, edx
sub edi, esi
jbe 0x41874d
cmp byte [eax + esi], 0xbf
jg 0x41874f
push ebp
push edx
push esi
push edx
push eax
call fcn.0041b280
jne 0x418743
test edi, edi
jne 0x418759
push ebp
call fcn.0041ac90
movzx ebx, byte [eax + esi]
movzx edx, bl
test bl, bl
js 0x418772
mov dword [esp + 8], edx
mov edx, 1
jmp 0x4187f9
mov ecx, eax
mov eax, ebp
and edx, 0x1f
movzx ebp, byte [ecx + esi + 1]
and ebp, 0x3f
cmp bl, 0xdf
jbe 0x4187b9
movzx edi, byte [ecx + esi + 2]
shl ebp, 6
and edi, 0x3f
or edi, ebp
cmp bl, 0xf0
jb 0x4187c4
movzx ecx, byte [ecx + esi + 3]
and edx, 7
shl edi, 6
mov ebp, eax
shl edx, 0x12
and ecx, 0x3f
or ecx, edi
or ecx, edx
cmp ecx, 0x110000
je 0x418753
jmp 0x4187cd
shl edx, 6
or edx, ebp
mov ebp, eax
mov ecx, edx
jmp 0x4187cd
shl edx, 0xc
mov ebp, eax
or edi, edx
mov ecx, edi
mov edx, 1
cmp ecx, 0x80
mov dword [esp + 8], ecx
jb 0x4187f9
mov edx, 2
cmp ecx, 0x800
jb 0x4187f9
cmp ecx, 0x10000
mov edx, 4
sbb edx, 0
lea eax, [esp + 0x5c]
add edx, esi
lea ecx, [esp + 8]
mov dword [esp + 0x54], esi
mov dword [esp + 0xc], 0x41f5f0
mov dword [esp + 0x10], 5
mov dword [esp + 0x1c], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], fcn.004191f0
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x30], 0x417380
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0x4157b0
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x4c]
mov dword [esp + 0x40], 0x419430
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], 0x419430
mov dword [esp + 0x18], 5
lea eax, [esp + 0xc]
push ebp
push eax
call fcn.0041ad00
int3