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

Disassembly:
sub esp, 0x54
push ebx
push esi
mov dword [esp + 0x20], 1
push edi
push ebp
lea ebp, [esp + 0x3c]
xor edi, edi
mov word [esp + 0x12], di
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
xor ecx, ecx
mov esi, dword [esp + 0x70]
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], esi
mov al, byte [esi]
cmp al, 0x20
je 0x1021fce6
cmp al, 9
je 0x1021fce6
cmp al, 0xa
je 0x1021fce6
cmp al, 0xd
jne 0x1021fce9
inc esi
jmp 0x1021fcd4
mov bl, byte [esi]
inc esi
cmp ecx, 0xb
ja case.0x1021fcf5.10
jmp dword [ecx*4 + 0x102202bc]
cmp bl, 0x31
jl 0x1021fd10
cmp bl, 0x39
jg 0x1021fd10
mov ecx, 3
jmp 0x10220144
cmp byte [0x1024ab10], bl
jne 0x1021fd22
mov ecx, 5
jmp case.0x1021fcf5.10
movsx eax, bl
cmp eax, 0x2b
je 0x1021fd39
cmp eax, 0x2d
je 0x1021fd4a
cmp eax, 0x30
je 0x1021fd5b
jmp case.0x1021fdaa.48
mov word [esp + 0x12], 0
mov ecx, 2
jmp case.0x1021fcf5.10
mov word [esp + 0x12], 0x8000
mov ecx, 2
jmp case.0x1021fcf5.10
mov ecx, 1
jmp case.0x1021fcf5.10
mov dword [esp + 0x20], 1
cmp bl, 0x31
jl 0x1021fd81
cmp bl, 0x39
jg 0x1021fd81
mov ecx, 3
jmp 0x10220144
cmp byte [0x1024ab10], bl
jne 0x1021fd93
mov ecx, 4
jmp case.0x1021fcf5.10
movsx ecx, bl
sub ecx, 0x2b
cmp ecx, 0x3a
ja case.0x1021fdaa.48
xor eax, eax
mov al, byte [ecx + 0x10220304]
jmp dword [eax*4 + 0x102202ec]
dec esi
mov ecx, 0xb
jmp case.0x1021fcf5.10
mov ecx, 1
jmp case.0x1021fcf5.10
mov ecx, 6
jmp case.0x1021fcf5.10
cmp bl, 0x31
jl 0x1021fde4
cmp bl, 0x39
jg 0x1021fde4
mov ecx, 3
jmp 0x10220144
cmp byte [0x1024ab10], bl
jne 0x1021fdf6
mov ecx, 5
jmp case.0x1021fcf5.10
movsx eax, bl
cmp eax, 0x30
je 0x1021fe0c
mov ecx, 0xa
mov esi, dword [esp + 0x18]
jmp case.0x1021fcf5.10
mov ecx, 1
jmp case.0x1021fcf5.10
mov dword [esp + 0x20], 1
cmp dword [sym.MSVCRT40.dll___mb_cur_max], 1
jle 0x1021fe38
push 4
xor eax, eax
mov al, bl
push eax
call sym.MSVCRT40.dll__isctype
add esp, 8
jmp 0x1021fe4b
xor ecx, ecx
mov edx, dword [sym.MSVCRT40.dll__pctype]
mov cl, bl
xor eax, eax
mov ax, word [edx + ecx*2]
and eax, 4
test eax, eax
je 0x1021fe70
cmp dword [esp + 0x14], 0x19
jae 0x1021fe67
sub bl, 0x30
inc ebp
inc esi
inc dword [esp + 0x14]
mov byte [ebp - 1], bl
mov bl, byte [esi - 1]
jmp 0x1021fe1e
mov bl, byte [esi]
inc esi
inc dword [esp + 0x1c]
jmp 0x1021fe1e
cmp byte [0x1024ab10], bl
jne 0x1021fe82
mov ecx, 4
jmp case.0x1021fcf5.10
movsx ecx, bl
sub ecx, 0x2b
cmp ecx, 0x3a
ja case.0x1021fdaa.48
xor eax, eax
mov al, byte [ecx + 0x10220354]
jmp dword [eax*4 + 0x10220340]
dec esi
mov ecx, 0xb
jmp case.0x1021fcf5.10
mov ecx, 6
jmp case.0x1021fcf5.10
mov dword [esp + 0x20], 1
mov dword [esp + 0x30], 1
cmp dword [esp + 0x14], 0
jne 0x1021fedd
cmp bl, 0x30
jne 0x1021fedd
mov bl, byte [esi]
inc esi
dec dword [esp + 0x1c]
cmp bl, 0x30
je 0x1021fed1
cmp dword [sym.MSVCRT40.dll___mb_cur_max], 1
jle 0x1021fef7
push 4
xor eax, eax
mov al, bl
push eax
call sym.MSVCRT40.dll__isctype
add esp, 8
jmp 0x1021ff0a
xor ecx, ecx
mov edx, dword [sym.MSVCRT40.dll__pctype]
mov cl, bl
xor eax, eax
mov ax, word [edx + ecx*2]
and eax, 4
test eax, eax
je 0x1021ff29
cmp dword [esp + 0x14], 0x19
jae 0x1021ff24
sub bl, 0x30
inc ebp
inc dword [esp + 0x14]
dec dword [esp + 0x1c]
mov byte [ebp - 1], bl
mov bl, byte [esi]
inc esi
jmp 0x1021fedd
movsx ecx, bl
sub ecx, 0x2b
cmp ecx, 0x3a
ja case.0x1021fdaa.48
xor eax, eax
mov al, byte [ecx + 0x102203a4]
jmp dword [eax*4 + 0x10220390]
dec esi
mov ecx, 0xb
jmp case.0x1021fcf5.10
mov ecx, 6
jmp case.0x1021fcf5.10
mov dword [esp + 0x30], 1
cmp dword [sym.MSVCRT40.dll___mb_cur_max], 1
jle 0x1021ff7e
push 4
xor eax, eax
mov al, bl
push eax
call sym.MSVCRT40.dll__isctype
add esp, 8
jmp 0x1021ff91
xor ecx, ecx
mov edx, dword [sym.MSVCRT40.dll__pctype]
mov cl, bl
xor eax, eax
mov ax, word [edx + ecx*2]
and eax, 4
test eax, eax
je 0x1021ff9f
mov ecx, 4
jmp 0x10220144
mov ecx, 0xa
mov esi, dword [esp + 0x18]
jmp case.0x1021fcf5.10
lea eax, [esi - 2]
cmp bl, 0x31
mov dword [esp + 0x18], eax
jl 0x1021ffc8
cmp bl, 0x39
jg 0x1021ffc8
mov ecx, 9
jmp 0x10220144
movsx eax, bl
cmp eax, 0x2b
je 0x1021ffe8
cmp eax, 0x2d
je 0x1021fff2
cmp eax, 0x30
je 0x10220004
mov ecx, 0xa
mov esi, dword [esp + 0x18]
jmp case.0x1021fcf5.10
mov ecx, 7
jmp case.0x1021fcf5.10
mov dword [esp + 0x28], 0xffffffff
mov ecx, 7
jmp case.0x1021fcf5.10
mov ecx, 8
jmp case.0x1021fcf5.10
cmp bl, 0x31
jl 0x10220022
cmp bl, 0x39
jg 0x10220022
mov ecx, 9
jmp 0x10220144
movsx eax, bl
cmp eax, 0x30
je 0x10220038
mov ecx, 0xa
mov esi, dword [esp + 0x18]
jmp case.0x1021fcf5.10
mov ecx, 8
jmp case.0x1021fcf5.10
mov dword [esp + 0x2c], 1
cmp bl, 0x30
jne 0x10220057
mov bl, byte [esi]
inc esi
cmp bl, 0x30
je 0x1022004f
cmp bl, 0x31
jl case.0x1021fdaa.48
cmp bl, 0x39
jg case.0x1021fdaa.48
mov ecx, 9
jmp 0x10220144
mov dword [esp + 0x2c], 1
xor edi, edi
cmp dword [sym.MSVCRT40.dll___mb_cur_max], 1
jle 0x10220097
push 4
xor eax, eax
mov al, bl
push eax
call sym.MSVCRT40.dll__isctype
add esp, 8
jmp 0x102200aa
xor ecx, ecx
mov edx, dword [sym.MSVCRT40.dll__pctype]
mov cl, bl
xor eax, eax
mov ax, word [edx + ecx*2]
and eax, 4
test eax, eax
je 0x102200ca
lea eax, [edi + edi*4]
movsx ecx, bl
lea edi, [ecx + eax*2 - 0x30]
cmp edi, 0x1450
jg 0x102200c5
mov bl, byte [esi]
inc esi
jmp 0x1022007d
mov edi, 0x1451
cmp dword [sym.MSVCRT40.dll___mb_cur_max], 1
jle 0x102200e4
push 4
xor eax, eax
mov al, bl
push eax
call sym.MSVCRT40.dll__isctype
add esp, 8
jmp 0x102200f7
xor ecx, ecx
mov edx, dword [sym.MSVCRT40.dll__pctype]
mov cl, bl
xor eax, eax
mov ax, word [edx + ecx*2]
and eax, 4
test eax, eax
je case.0x1021fdaa.48
mov bl, byte [esi]
inc esi
jmp 0x102200ca
cmp dword [esp + 0x80], 0
je case.0x1021fdaa.48
lea eax, [esi - 1]
mov dword [esp + 0x18], eax
movsx eax, bl
cmp eax, 0x2b
je 0x10220129
cmp eax, 0x2d
je 0x10220130
mov ecx, 0xa
mov esi, dword [esp + 0x18]
jmp case.0x1021fcf5.10
mov ecx, 7
jmp case.0x1021fcf5.10
mov dword [esp + 0x28], 0xffffffff
mov ecx, 7
jmp case.0x1021fcf5.10
mov ecx, 0xa
dec esi
cmp ecx, 0xa
jne 0x1021fce9
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x20], 0
mov dword [eax], esi
je 0x10220230
cmp dword [esp + 0x14], 0x18
jbe 0x1022017e
cmp byte [esp + 0x53], 5
jl 0x10220171
inc byte [esp + 0x53]
dec ebp
inc dword [esp + 0x1c]
mov dword [esp + 0x14], 0x18
cmp dword [esp + 0x14], 0
je 0x10220224
dec ebp
cmp byte [ebp], 0
jne 0x1022019f
dec ebp
dec dword [esp + 0x14]
inc dword [esp + 0x1c]
cmp byte [ebp], 0
je 0x10220190
lea eax, [esp + 0x58]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push eax
push ecx
push edx
call fcn.102206a0
add esp, 0xc
cmp dword [esp + 0x28], 0
jge 0x102201bf
neg edi
add edi, dword [esp + 0x1c]
cmp dword [esp + 0x2c], 0
jne 0x102201ce
add edi, dword [esp + 0x78]
cmp dword [esp + 0x30], 0
jne 0x102201d9
sub edi, dword [esp + 0x7c]
cmp edi, 0x1450
jle 0x102201eb
mov dword [esp + 0x34], 1
jmp 0x10220230
cmp edi, 0xffffebb0
jge 0x102201fd
mov dword [esp + 0x38], 1
jmp 0x10220230
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x58]
push eax
push edi
push ecx
call fcn.10220a40
mov cx, word [esp + 0x64]
mov edx, dword [esp + 0x66]
mov si, word [esp + 0x6e]
mov edi, dword [esp + 0x6a]
add esp, 0xc
jmp 0x10220242
xor cx, cx
xor edi, edi
xor si, si
xor edx, edx
jmp 0x10220242
mov cx, word [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov si, word [esp + 0x3c]
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x20], 0
jne 0x1022025d
xor cx, cx
xor edi, edi
xor si, si
xor edx, edx
mov dword [esp + 0x24], 4
jmp 0x10220295
cmp dword [esp + 0x34], 0
je 0x1022027c
mov si, 0x7fff
mov edi, 0x80000000
xor cx, cx
xor edx, edx
mov dword [esp + 0x24], 2
jmp 0x10220295
cmp dword [esp + 0x38], 0
je 0x10220295
xor cx, cx
xor edi, edi
xor si, si
xor edx, edx
mov dword [esp + 0x24], 1
mov ax, word [esp + 0x12]
mov ebx, dword [esp + 0x68]
or ax, si
mov dword [ebx + 2], edx
mov word [ebx], cx
mov dword [ebx + 6], edi
mov word [ebx + 0xa], ax
mov eax, dword [esp + 0x24]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x54
ret