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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x17c
mov esi, edx
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x1a0]
mov edx, dword [esp + 0x198]
lea edi, [esp + 0x190]
mov ecx, edi
call fcn.00408ae0
mov byte [esp], al
lea eax, [esp + 0x7c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x80
cmp ebx, 0x4e4
mov dword [esp + 0x10], esi
je 0x408196
cmp ebx, 0xfde9
jne 0x4081fc
movsd xmm0, qword [edi]
movsd qword [esp + 0x68], xmm0
sub esp, 0xc
movsd qword [esp], xmm0
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
call fcn.0041bc5e
add esp, 0xc
jmp 0x408258
mov ebp, dword [edi + 4]
test ebp, ebp
je 0x408258
mov edi, dword [edi]
xor esi, esi
xor eax, eax
nop word [eax + eax]
movzx ebx, byte [edi + esi]
cmp bl, 0x9f
jg 0x4081c1
movzx ebx, word [ebx + ebx + 0x41e248]
lea edx, [eax + 1]
cmp edx, dword [esp + 0x78]
ja 0x4081e2
mov ecx, dword [esp + 0x70]
mov word [ecx + eax*2], bx
mov eax, dword [esp + 0x74]
inc eax
mov dword [esp + 0x74], eax
inc esi
cmp ebp, esi
jne 0x4081b0
jmp 0x408258
lea ecx, [esp + 0x70]
push 2
push edx
lea eax, [esp + 0x84]
push eax
call fcn.0041bc16
mov eax, dword [esp + 0x74]
jmp 0x4081ca
mov esi, dword [edi + 4]
test esi, esi
je 0x408258
mov ebp, dword [edi]
xor edi, edi
xor eax, eax
nop dword [eax]
movzx ebx, byte [ebp + edi]
test bl, bl
js 0x408782
lea edx, [eax + 1]
cmp edx, dword [esp + 0x78]
ja 0x40823e
mov ecx, dword [esp + 0x70]
mov word [ecx + eax*2], bx
mov eax, dword [esp + 0x74]
inc eax
mov dword [esp + 0x74], eax
inc edi
cmp esi, edi
jne 0x408210
jmp 0x408258
lea ecx, [esp + 0x70]
push 2
push edx
lea eax, [esp + 0x84]
push eax
call fcn.0041bc16
mov eax, dword [esp + 0x74]
jmp 0x408226
mov edi, dword [esp + 0x19c]
cmp byte [esp], 0
je 0x4082d4
mov edx, dword [esp + 0x74]
cmp dword [edi + 8], edx
jae 0x408280
lea eax, [edi + 0xc]
mov ecx, edi
push 2
push edx
push eax
call fcn.0041bc16
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x198]
movzx eax, byte [eax]
mov byte [esp + 0x5c], al
mov byte [esp + 0x48], al
movsd xmm0, qword [esp + 0x54]
movsd qword [esp + 0x40], xmm0
mov byte [esp + 7], al
mov byte [esp + 0x4c], al
mov dword [esp + 0x50], ecx
test edx, edx
mov ebx, dword [esp + 0xc]
je 0x4086ca
lea eax, [edi + 0xc]
mov dword [esp + 0x14], eax
xor eax, eax
jmp 0x40834e
mov esi, dword [esp + 0x74]
test esi, esi
je 0x408305
mov edi, dword [esp + 0x70]
add esi, esi
xor ebx, ebx
mov ebp, dword [sym.imp.msvcrt.dll_toupper]
nop word [eax + eax]
movzx eax, word [edi + ebx]
push eax
call ebp
add esp, 4
mov word [edi + ebx], ax
add ebx, 2
cmp esi, ebx
jne 0x4082f0
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x19c]
push eax
call fcn.0040db20
mov eax, dword [esp + 0xc]
mov dword [eax], 0
jmp 0x4088f6
movzx eax, si
mov ecx, ebx
lea edx, [esp + 0x40]
push eax
call fcn.0040ddc0
add esp, 4
cmp dword [ebx], 0
jne 0x4088f6
mov edx, dword [esp + 0x74]
mov eax, ebp
cmp ebp, edx
jae 0x4086ca
mov ecx, dword [esp + 0x70]
movzx esi, word [ecx + eax*2]
cmp esi, 0x5c
je 0x408390
lea ebp, [eax + 1]
cmp esi, 0x22
jne 0x408430
cmp ebp, edx
je 0x408825
cmp word [ecx + eax*2 + 2], 0x22
jne 0x408825
add eax, 2
mov ecx, dword [edi + 4]
lea edx, [ecx + 1]
mov si, 0x22
mov ebp, eax
jmp 0x408452
mov dword [esp], ecx
movzx esi, word [ecx + eax*2 + 2]
lea ebp, [eax + 2]
mov ecx, esi
and ecx, 0xffffffdf
cmp cx, 0x58
mov dword [esp + 8], edx
jne 0x40846f
cmp ebp, edx
jae 0x4085aa
mov eax, dword [esp + 0x198]
movzx eax, byte [eax]
lea edi, [eax*2 + 1]
xor esi, esi
nop dword [eax]
mov eax, dword [esp]
movzx ebx, word [eax + ebp*2]
cmp ebx, 0x7f
ja 0x4085ac
push ebx
call dword [sym.imp.msvcrt.dll_isxdigit]
add esp, 4
test eax, eax
je 0x4085ac
push ebx
call dword [sym.imp.msvcrt.dll_tolower]
add esp, 4
inc ebp
shl esi, 4
movsx eax, al
lea ecx, [eax - 0x30]
lea edx, [eax + 0xffa9]
add eax, 0xffd0
cmp ecx, 0xa
cmovae eax, edx
or eax, esi
mov esi, eax
add edi, 0xffffffff
jae 0x4085ac
cmp ebp, dword [esp + 8]
jb 0x4083d0
jmp 0x4085ac
cmp byte [esp + 7], 0
jne 0x40844c
movzx eax, si
cmp eax, 0x100
jb 0x40844c
cmp dword [esp + 0x10], 0
je 0x408881
mov ecx, dword [edi + 4]
lea edx, [ecx + 1]
cmp edx, dword [edi + 8]
ja 0x40869e
mov eax, dword [edi]
mov word [eax + ecx*2], si
inc dword [edi + 4]
mov dword [ebx], 0
jmp 0x408340
mov ecx, esi
and ecx, 0xfffffff8
cmp cx, 0x30
jne 0x4085d7
add esi, 0xffffffd0
cmp ebp, edx
jae 0x408325
mov ecx, dword [esp]
movzx ecx, word [ecx + eax*2 + 4]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x408325
shl esi, 3
add ecx, 0xffffffd0
or ecx, esi
mov esi, ecx
lea ebp, [eax + 3]
cmp ebp, dword [esp + 8]
jae 0x408325
mov ecx, dword [esp]
movzx ecx, word [ecx + eax*2 + 6]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x408325
shl esi, 3
add ecx, 0xffffffd0
or ecx, esi
lea ebp, [eax + 4]
mov edx, dword [esp + 0x198]
cmp byte [edx], 0
mov esi, ecx
je 0x408325
cmp ebp, dword [esp + 8]
jae 0x408325
mov ecx, dword [esp]
movzx ecx, word [ecx + eax*2 + 8]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x408325
shl esi, 3
add ecx, 0xffffffd0
or ecx, esi
mov esi, ecx
lea ebp, [eax + 5]
cmp ebp, dword [esp + 8]
jae 0x408325
mov ecx, dword [esp]
movzx ecx, word [ecx + eax*2 + 0xa]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x408325
shl esi, 3
add ecx, 0xffffffd0
or ecx, esi
mov esi, ecx
lea ebp, [eax + 6]
cmp ebp, dword [esp + 8]
jae 0x408325
mov ecx, dword [esp]
movzx ecx, word [ecx + eax*2 + 0xc]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x408325
shl esi, 3
add ecx, 0xffffffd0
or ecx, esi
mov esi, ecx
lea ebp, [eax + 7]
cmp ebp, dword [esp + 8]
jae 0x408325
mov ecx, dword [esp]
movzx ecx, word [ecx + eax*2 + 0xe]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x408325
shl esi, 3
add ecx, 0xffffffd0
or ecx, esi
add eax, 8
mov ebp, eax
mov esi, ecx
jmp 0x408325
xor esi, esi
movzx eax, si
mov ebx, dword [esp + 0xc]
mov ecx, ebx
lea edx, [esp + 0x40]
push eax
call fcn.0040ddc0
add esp, 4
cmp dword [ebx], 0
mov edi, dword [esp + 0x19c]
je 0x408340
jmp 0x4088f6
lea ecx, [esi - 0x41]
cmp ecx, 0x33
ja case.default.0x4085df
jmp dword [ecx*4 + 0x41e5a4]
mov ecx, dword [edi + 4]
lea edx, [ecx + 1]
mov si, 8
jmp 0x408452
mov ecx, dword [edi + 4]
lea edx, [ecx + 1]
mov si, 9
jmp 0x408452
cmp esi, 0x22
mov ecx, dword [esp]
jne case.0x4085df.66
cmp ebp, edx
je 0x408916
cmp word [ecx + eax*2 + 4], 0x22
jne 0x408916
add eax, 3
jmp 0x40837e
mov eax, dword [esp + 0x198]
cmp byte [eax], 0
jne 0x408340
mov eax, dword [edi + 4]
lea edx, [eax + 1]
cmp edx, dword [edi + 8]
ja 0x4086b4
mov ecx, dword [edi]
mov word [ecx + eax*2], 0x5c
inc dword [edi + 4]
mov dword [ebx], 0
mov ecx, ebx
lea edx, [esp + 0x54]
push esi
call fcn.0040dcf0
add esp, 4
cmp dword [ebx], 0
je 0x408340
jmp 0x4088f6
mov ecx, dword [edi + 4]
lea edx, [ecx + 1]
mov si, 0x5c
jmp 0x408452
mov ecx, dword [edi + 4]
lea edx, [ecx + 1]
mov si, 0xa
jmp 0x408452
mov ecx, dword [edi + 4]
lea edx, [ecx + 1]
mov si, 0xd
jmp 0x408452
mov ecx, edi
push 2
push edx
push dword [esp + 0x1c]
call fcn.0041bc16
mov ecx, dword [edi + 4]
jmp 0x40845b
mov ecx, edi
push 2
push edx
push dword [esp + 0x1c]
call fcn.0041bc16
mov eax, dword [edi + 4]
jmp 0x408643
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4087f6
cmp eax, 2
jne 0x4088f0
mov eax, dword [edi + 4]
cmp eax, 2
jb 0x408860
lea ecx, [edi + 0xc]
mov dword [esp], ecx
mov edi, 1
xor ebx, ebx
jmp 0x408710
mov ebp, eax
inc edi
add ebx, 2
mov eax, ebp
cmp edi, ebp
jae 0x408862
mov ecx, dword [esp + 0x19c]
mov ecx, dword [ecx]
cmp word [ecx + edi*2 - 2], 0
jne 0x408700
lea ebp, [edi - 1]
cmp ebp, eax
je 0x408700
cmp word [ecx + edi*2], 0
jne 0x408700
cmp eax, ebp
ja 0x408776
mov ecx, dword [esp + 0x19c]
cmp dword [ecx + 8], ebp
jae 0x408757
mov esi, dword [esp + 0x19c]
mov ecx, esi
push 2
push ebp
push dword [esp + 8]
call fcn.0041bc16
mov eax, dword [esi + 4]
cmp ebp, eax
je 0x408776
add eax, eax
mov ecx, ebx
sub ecx, eax
mov edx, dword [esp + 0x19c]
add eax, dword [edx]
push ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x19c]
mov dword [eax + 4], ebp
jmp 0x408702
movzx eax, bx
mov dword [esp + 0x18], str.Non_ASCII_8_bit_codepoint__
mov dword [esp + 0x20], eax
mov word [esp + 0x28], 0x703
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], str.__cant_be_interpreted_in_the_current_codepage
mov word [esp + 0x3c], 0x302
call fcn.0041bdf0
mov edi, eax
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], 0x16
sub esp, 0xc
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x38]
mov dword [esp], eax
mov ecx, ebx
call fcn.0041bbd4
mov eax, dword [esp + 0xc]
mov dword [eax], ebx
jmp 0x4088f6
mov eax, dword [edi + 4]
test eax, eax
je 0x4088f0
mov edx, dword [edi]
xor ecx, ecx
nop word cs:[eax + eax]
cmp word [edx + ecx*2], 0
je 0x4088ed
inc ecx
cmp ecx, eax
jb 0x408810
jmp 0x4088f0
mov dword [esp + 0x2c], 0x41e32f
mov word [esp + 0x3c], 0x103
call fcn.0041bdf0
mov edi, eax
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, ebx
mov ebx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x16
sub esp, 0xc
movsd xmm0, qword [esp + 0x24]
jmp 0x4088d5
mov ebp, eax
test ebp, ebp
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x19c]
je 0x4088f0
mov eax, dword [ecx]
cmp word [eax + ebp*2 - 2], 0
jne 0x4088f0
dec ebp
mov dword [ecx + 4], ebp
jmp 0x4088f0
mov dword [esp + 0x18], str.Non_8_bit_codepoint__
mov dword [esp + 0x20], esi
mov word [esp + 0x28], 0x903
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], str.__cant_occur_in_a_user_defined_narrow_string
mov word [esp + 0x3c], 0x302
call fcn.0041bdf0
mov edi, eax
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, ebx
mov ebx, eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], 0x16
sub esp, 0xc
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x38]
mov dword [esp], eax
mov ecx, ebx
call fcn.0041bbd4
mov dword [esi], ebx
jmp 0x4088f6
mov dword [edi + 4], ecx
mov dword [ebx], 0
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x7c]
cmp eax, ecx
je 0x40890b
push eax
call sub.msvcrt.dll_free
add esp, 4
add esp, 0x17c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x2c], str.Expected___
jmp 0x40882d