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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x17c
mov dword [esp + 8], edx
mov dword [esp], ecx
mov esi, dword [esp + 0x1a0]
mov edx, dword [esp + 0x198]
lea ebp, [esp + 0x190]
mov ecx, ebp
call fcn.00408550
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x80
cmp esi, 0x4e4
mov byte [esp + 0xc], al
je 0x407ca5
cmp esi, 0xfde9
jne 0x407d0d
movsd xmm0, qword [ebp]
movsd qword [esp + 0x68], xmm0
sub esp, 0xc
movsd qword [esp], xmm0
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
call fcn.0041ca34
add esp, 0xc
jmp 0x407d67
mov edi, dword [ebp + 4]
test edi, edi
je 0x407d67
mov ebp, dword [ebp]
xor esi, esi
xor eax, eax
nop word [eax + eax]
movzx ebx, byte [ebp + esi]
cmp bl, 0x9f
jg 0x407cd2
movzx ebx, word [ebx + ebx + 0x41f40c]
lea edx, [eax + 1]
cmp edx, dword [esp + 0x78]
ja 0x407cf3
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 edi, esi
jne 0x407cc0
jmp 0x407d67
lea ecx, [esp + 0x70]
push 2
push edx
lea eax, [esp + 0x84]
push eax
call fcn.0041c9ec
mov eax, dword [esp + 0x74]
jmp 0x407cdb
mov esi, dword [ebp + 4]
test esi, esi
je 0x407d67
mov edi, dword [ebp]
xor ebp, ebp
xor eax, eax
nop dword [eax + eax]
movzx ebx, byte [edi + ebp]
test bl, bl
js 0x408203
lea edx, [eax + 1]
cmp edx, dword [esp + 0x78]
ja 0x407d4d
mov ecx, dword [esp + 0x70]
mov word [ecx + eax*2], bx
mov eax, dword [esp + 0x74]
inc eax
mov dword [esp + 0x74], eax
inc ebp
cmp esi, ebp
jne 0x407d20
jmp 0x407d67
lea ecx, [esp + 0x70]
push 2
push edx
lea eax, [esp + 0x84]
push eax
call fcn.0041c9ec
mov eax, dword [esp + 0x74]
jmp 0x407d35
mov ecx, dword [esp + 0x19c]
cmp byte [esp + 0xc], 0
je 0x407de8
mov ebx, dword [esp + 0x74]
cmp dword [ecx + 8], ebx
jae 0x407d95
lea eax, [ecx + 0xc]
push 2
push ebx
push eax
call fcn.0041c9ec
mov ecx, dword [esp + 0x19c]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x1a0]
mov dword [esp + 0x54], ecx
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], edx
test ebx, ebx
je 0x4081ae
lea eax, [ecx + 0xc]
mov dword [esp + 0x10], eax
xor eax, eax
jmp 0x407e69
mov esi, dword [esp + 0x74]
test esi, esi
je 0x407e15
mov edi, dword [esp + 0x70]
add esi, esi
xor ebx, ebx
mov ebp, dword [sym.imp.msvcrt.dll_toupper]
nop
movzx eax, word [edi + ebx]
push eax
call ebp
add esp, 4
mov word [edi + ebx], ax
add ebx, 2
cmp esi, ebx
jne 0x407e00
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x19c]
push eax
call fcn.0040d870
mov eax, dword [esp]
mov dword [eax], 0
jmp 0x408359
xor esi, esi
movzx eax, si
mov esi, dword [esp]
mov ecx, esi
lea edx, [esp + 0x40]
push eax
call fcn.0040db10
add esp, 4
cmp dword [esi], 0
mov ecx, dword [esp + 0x19c]
jne 0x408359
mov ebx, dword [esp + 0x74]
mov eax, edi
cmp edi, ebx
jae 0x4081ae
mov ebp, dword [esp + 0x70]
movzx esi, word [ebp + eax*2]
cmp esi, 0x5c
je 0x407eb0
lea edi, [eax + 1]
cmp esi, 0x22
jne 0x407f60
cmp edi, ebx
je 0x4082b5
cmp word [ebp + eax*2 + 2], 0x22
jne 0x4082b5
add eax, 2
mov ebp, dword [ecx + 4]
mov ebx, ecx
lea edx, [ebp + 1]
mov si, 0x22
mov edi, eax
jmp 0x407f84
movzx esi, word [ebp + eax*2 + 2]
lea edi, [eax + 2]
mov edx, esi
and edx, 0xffffffdf
cmp dx, 0x58
jne 0x407fa6
cmp edi, ebx
jae 0x407e34
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x198]
movzx eax, byte [eax]
lea ebp, [eax*2 + 1]
xor esi, esi
mov dword [esp + 0x3c], ebx
nop word [eax + eax]
mov eax, edi
mov ecx, dword [esp + 0xc]
movzx ebx, word [ecx + edi*2]
cmp ebx, 0x7f
ja 0x407e36
push ebx
call dword [sym.imp.msvcrt.dll_isxdigit]
add esp, 4
test eax, eax
je 0x407e36
push ebx
call dword [sym.imp.msvcrt.dll_tolower]
add esp, 4
inc edi
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 ebp, 0xffffffff
jae 0x407e36
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jb 0x407ef0
jmp 0x407e36
cmp byte [esp + 7], 0
jne 0x407f7c
movzx eax, si
cmp eax, 0x100
jb 0x407f7c
cmp dword [esp + 8], 0
je 0x4082ee
mov ebp, dword [ecx + 4]
mov ebx, ecx
lea edx, [ebp + 1]
cmp edx, dword [ecx + 8]
ja 0x408182
mov eax, dword [ebx]
mov word [eax + ebp*2], si
inc dword [ebx + 4]
mov eax, dword [esp]
mov dword [eax], 0
mov ecx, ebx
jmp 0x407e5b
mov edx, esi
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x4080ab
add esi, 0xffffffd0
cmp edi, ebx
jae 0x407e36
movzx ecx, word [ebp + eax*2 + 4]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x407e36
lea esi, [ecx + esi*8]
add esi, 0xffffffd0
lea edi, [eax + 3]
cmp edi, ebx
jae 0x407e36
movzx ecx, word [ebp + eax*2 + 6]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x407e36
lea edi, [eax + 4]
mov edx, dword [esp + 0x198]
cmp byte [edx], 0
lea esi, [ecx + esi*8 - 0x30]
je 0x407e36
cmp edi, ebx
jae 0x407e36
movzx ecx, word [ebp + eax*2 + 8]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x407e36
lea esi, [ecx + esi*8]
add esi, 0xffffffd0
lea edi, [eax + 5]
cmp edi, ebx
jae 0x407e36
movzx ecx, word [ebp + eax*2 + 0xa]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x407e36
lea esi, [ecx + esi*8]
add esi, 0xffffffd0
lea edi, [eax + 6]
cmp edi, ebx
jae 0x407e36
movzx ecx, word [ebp + eax*2 + 0xc]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x407e36
lea esi, [ecx + esi*8]
add esi, 0xffffffd0
lea edi, [eax + 7]
cmp edi, ebx
jae 0x407e36
movzx ecx, word [ebp + eax*2 + 0xe]
mov edx, ecx
and edx, 0xfffffff8
cmp dx, 0x30
jne 0x407e36
lea esi, [ecx + esi*8]
add esi, 0xffffffd0
add eax, 8
mov edi, eax
jmp 0x407e36
lea edx, [esi - 0x41]
cmp edx, 0x33
ja case.default.0x4080b3
jmp dword [edx*4 + 0x41f768]
mov ebp, dword [ecx + 4]
mov ebx, ecx
lea edx, [ebp + 1]
mov si, 8
jmp 0x407f84
mov ebp, dword [ecx + 4]
mov ebx, ecx
lea edx, [ebp + 1]
mov si, 9
jmp 0x407f84
cmp esi, 0x22
jne case.0x4080b3.66
cmp edi, ebx
je 0x408388
cmp word [ebp + eax*2 + 4], 0x22
jne 0x408388
add eax, 3
jmp 0x407e9a
mov eax, dword [esp + 0x198]
cmp byte [eax], 0
jne 0x407e5b
mov eax, dword [ecx + 4]
mov ebx, ecx
lea edx, [eax + 1]
cmp edx, dword [ecx + 8]
ja 0x408198
mov ecx, dword [ebx]
mov word [ecx + eax*2], 0x5c
inc dword [ebx + 4]
mov ebp, dword [esp]
mov dword [ebp], 0
mov ecx, ebp
lea edx, [esp + 0x54]
push esi
call fcn.0040da40
add esp, 4
cmp dword [ebp], 0
mov ecx, ebx
je 0x407e5b
jmp 0x408359
mov ebp, dword [ecx + 4]
mov ebx, ecx
lea edx, [ebp + 1]
mov si, 0xa
jmp 0x407f84
mov ebp, dword [ecx + 4]
mov ebx, ecx
lea edx, [ebp + 1]
mov si, 0x5c
jmp 0x407f84
mov ebp, dword [ecx + 4]
mov ebx, ecx
lea edx, [ebp + 1]
mov si, 0xd
jmp 0x407f84
mov ecx, ebx
push 2
push edx
push dword [esp + 0x18]
call fcn.0041c9ec
mov ebp, dword [ebx + 4]
jmp 0x407f8d
mov ecx, ebx
push 2
push edx
push dword [esp + 0x18]
call fcn.0041c9ec
mov eax, dword [ebx + 4]
jmp 0x40811a
mov eax, dword [esp + 8]
cmp eax, 1
je 0x40828a
cmp eax, 2
jne 0x407e26
mov ecx, dword [esp + 0x19c]
mov eax, dword [ecx + 4]
cmp eax, 2
jb 0x40825d
mov ecx, dword [ecx]
mov edx, 1
jmp 0x4081e5
inc edx
cmp edx, eax
jae 0x40825d
cmp word [ecx + edx*2 - 2], 0
jne 0x4081e0
cmp word [ecx + edx*2], 0
jne 0x4081e0
lea eax, [edx - 1]
mov esi, dword [esp + 0x19c]
mov dword [esi + 4], eax
jmp 0x4081e0
movzx eax, bx
mov dword [esp + 0x14], str.Non_ASCII_8_bit_codepoint__
mov dword [esp + 0x1c], eax
mov word [esp + 0x24], 0x803
lea eax, [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], str.__cant_be_interpreted_in_the_current_codepage
mov word [esp + 0x38], 0x302
call fcn.0041cbd2
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]
jmp 0x408340
test eax, eax
je 0x407e26
mov ecx, dword [esp + 0x19c]
mov ecx, dword [ecx]
cmp word [ecx + eax*2 - 2], 0
jne 0x407e26
dec eax
mov ecx, dword [esp + 0x19c]
mov dword [ecx + 4], eax
jmp 0x407e26
mov eax, dword [ecx + 4]
test eax, eax
je 0x407e26
mov ecx, dword [esp + 0x19c]
mov edx, dword [ecx]
xor ecx, ecx
cmp word [edx + ecx*2], 0
je 0x408379
inc ecx
cmp ecx, eax
jb 0x4082a0
jmp 0x407e26
mov dword [esp + 0x28], 0x41f4f3
mov word [esp + 0x38], 0x103
call fcn.0041cbd2
mov edi, eax
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0x16
sub esp, 0xc
movsd xmm0, qword [esp + 0x20]
jmp 0x408340
mov dword [esp + 0x14], str.Non_8_bit_codepoint__
mov dword [esp + 0x1c], esi
mov word [esp + 0x24], 0xa03
lea eax, [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], str.__cant_occur_in_a_user_defined_narrow_string
mov word [esp + 0x38], 0x302
call fcn.0041cbd2
mov edi, eax
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
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 + 0x34]
mov dword [esp], eax
mov ecx, ebx
call fcn.0041c9a4
mov eax, dword [esp]
mov dword [eax], ebx
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x7c]
cmp eax, ecx
je 0x40836e
push eax
call sub.msvcrt.dll_free
add esp, 4
add esp, 0x17c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x19c]
mov dword [eax + 4], ecx
jmp 0x407e26
mov dword [esp + 0x28], str.Expected___
jmp 0x4082bd