Function at 0x417380
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 0x4173ed
cmp byte [eax + 0x100], 0xbf
mov ebx, 0x100
jg 0x4173d8
cmp byte [eax + 0xff], 0xbf
mov ebx, 0xff
jg 0x4173d8
cmp byte [eax + 0xfe], 0xbf
mov ebx, 0xfe
jg 0x4173d8
mov ebx, 0xfd
cmp ebx, edx
jae 0x41740c
cmp byte [eax + ebx], 0xbf
jg 0x41740e
push ecx
push ebx
push 0
push edx
push eax
call fcn.0041a1d0
xor ebp, ebp
mov ebx, str.librarycore_src_fmtmod.rscalled__Option::unwrap____on_a__None__valuefrom_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 0x417440
jmp 0x4174c2
jne 0x4173e2
mov dword [esp], eax
xor eax, eax
cmp ebx, edx
mov dword [esp + 4], ebx
mov ebp, str._..._begin___end_______when_slicing___
mov ebx, str.librarycore_src_fmtmod.rscalled__Option::unwrap____on_a__None__valuefrom_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 0x4174c2
cmp esi, edx
ja 0x4174c2
cmp edi, esi
mov ebp, ecx
jbe 0x41752c
lea eax, [esp + 0x7c]
lea edx, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0xc], 0x41e50c
mov dword [esp + 0x10], 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], fcn.00418040
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], fcn.00418040
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x4c]
mov dword [esp + 0x38], 0x418280
mov dword [esp + 0x3c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], 0x418280
mov dword [esp + 0x18], 4
lea eax, [esp + 0xc]
push ebp
push eax
call fcn.00419c50
lea eax, [esp + 0x54]
cmp edi, edx
mov dword [esp + 0xc], 0x41e5ac
mov dword [esp + 0x10], 3
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
mov eax, esp
mov dword [esp + 0x28], fcn.00418040
cmova esi, edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x30], 0x418280
mov dword [esp + 0x54], esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 0x418280
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 3
lea eax, [esp + 0xc]
push ecx
push eax
call fcn.00419c50
test edi, edi
je 0x41753a
cmp edi, edx
jae 0x41753a
cmp byte [eax + edi], 0xc0
jl 0x41753c
mov edi, esi
cmp edi, edx
mov esi, edx
mov dword [esp + 0x5c], edi
jae 0x41757f
mov ebx, edi
mov ecx, eax
xor eax, eax
lea esi, [edi + 1]
sub ebx, 3
cmovb ebx, eax
cmp ebx, esi
jbe 0x417565
push 0x41e5e0
push esi
push ebx
call fcn.0041a120
add esi, ecx
add edi, ecx
sub esi, ecx
sub esi, ebx
mov eax, ecx
nop
test esi, esi
je 0x41757d
dec esi
cmp byte [edi], 0xc0
lea edi, [edi - 1]
jl 0x417570
add esi, ebx
test esi, esi
jne 0x417587
mov edi, edx
jmp 0x41759f
mov edi, edx
sub edi, esi
jbe 0x41759d
cmp byte [eax + esi], 0xbf
jg 0x41759f
push ebp
push edx
push esi
push edx
push eax
call fcn.0041a1d0
jne 0x417593
test edi, edi
jne 0x4175b0
push ebp
push 0x2b
push 0x41debb
call fcn.00419d30
movzx ebx, byte [eax + esi]
movzx edx, bl
test bl, bl
js 0x4175c9
mov dword [esp + 8], edx
mov edx, 1
jmp 0x417650
mov ecx, eax
mov eax, ebp
and edx, 0x1f
movzx ebp, byte [ecx + esi + 1]
and ebp, 0x3f
cmp bl, 0xdf
jbe 0x417610
movzx edi, byte [ecx + esi + 2]
shl ebp, 6
and edi, 0x3f
or edi, ebp
cmp bl, 0xf0
jb 0x41761b
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 0x4175a3
jmp 0x417624
shl edx, 6
or edx, ebp
mov ebp, eax
mov ecx, edx
jmp 0x417624
shl edx, 0xc
mov ebp, eax
or edi, edx
mov ecx, edi
mov edx, 1
cmp ecx, 0x80
mov dword [esp + 8], ecx
jb 0x417650
mov edx, 2
cmp ecx, 0x800
jb 0x417650
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], 0x41e56c
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.00418040
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x30], 0x416230
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0x414720
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x4c]
mov dword [esp + 0x40], 0x418280
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], 0x418280
mov dword [esp + 0x18], 5
lea eax, [esp + 0xc]
push ebp
push eax
call fcn.00419c50
int3