Function at 0x10021610
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1009ff5c
push eax
movsx eax, word [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xb8
add eax, 0xffffff37
push ebx
push ebp
push esi
cmp eax, 8
push edi
mov ebp, ecx
ja case.0x10021644.202
jmp dword [eax*4 + 0x10022304]
mov ecx, dword [ebp + 0x75970]
xor esi, esi
cmp ecx, esi
je 0x100216bd
push esi
push esi
call fcn.10030b70
mov eax, dword [ebp + 0x75970]
push esi
mov dword [ebp + 0x138], 1
mov dword [ebp + 0x75dc4], esi
push 0xfffffffffffffffd
lea ecx, [ebp + 0x81484]
mov dword [eax + 0x14], esi
call fcn.1007fc70
cmp dword [ebp + 0x75a88], 0xffffffff
je 0x10021699
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x104]
lea eax, [esp + 0x10]
mov dword [ebp + 0x7597c], 5
push eax
push esi
push ebp
push 0x10003710
push esi
push esi
mov dword [ebp + 0x75efc], esi
call dword [sym.imp.kernel32.dll_CreateThread]
lea ecx, [esp + 0x28]
call sub.mfc42.dll_CString::CString_2
movsx esi, word [esp + 0xdc]
mov edi, dword [esp + 0xe0]
mov dword [esp + 0xd0], 0
lea edx, [esi - 2]
mov cx, word [edi]
lea eax, [edi + 2]
mov word [esp + 0x10], cx
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.1009d318
push 0x100c4efc
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 1
call sub.mfc42.dll_CString::Find
push 0
push 0
lea ecx, [esp + 0x20]
push 0x100c4ef8
lea edx, [esp + 0x74]
push ecx
push edx
mov ebx, eax
call dword [sym.imp.staff.dll_class_CString___cdecl_STAFFGetFirstWord_class_CString___char_const___char___int_]
mov eax, dword [eax]
push eax
call dword [sym.imp.msvcrt.dll_atoi]
add esp, 0x18
lea ecx, [esp + 0x68]
mov dword [esp + 0x5c], eax
call sub.mfc42.dll_CString::CString
push 0
push 0
lea eax, [esp + 0x20]
push 0x100c4efc
lea ecx, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.staff.dll_class_CString___cdecl_STAFFGetFirstWord_class_CString___char_const___char___int_]
add esp, 0x14
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 2
call sub.mfc42.dll_CString::operator
lea ecx, [esp + 0x64]
mov byte [esp + 0xd0], 1
call sub.mfc42.dll_CString::CString
mov eax, dword [ebp + 0xc290c]
test eax, eax
je 0x1002179f
push eax
call sub.mfc42.dll_operatordelete
add esp, 4
mov dword [ebp + 0xc290c], 0
cmp ebx, 0xffffffff
jne 0x100217d4
lea ecx, [esp + 0x18]
mov dword [ebp + 0xc2910], 0
mov byte [esp + 0xd0], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0xd0], ebx
call sub.mfc42.dll_CString::CString
jmp case.0x10021644.202
sub esi, ebx
lea eax, [esi - 3]
push eax
mov dword [ebp + 0xc2910], eax
call sub.mfc42.dll_operatornew
mov ecx, dword [ebp + 0xc2910]
lea esi, [ebx + edi + 3]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp + 0xc290c], eax
mov eax, dword [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov ebx, 3
and ecx, ebx
push ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push 1
call fcn.1009a600
add esp, 0x14
test eax, eax
je 0x100218c0
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
call fcn.100053a0
test eax, eax
je 0x10021864
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x184]
mov ecx, dword [ebp + 0xc4]
push ecx
call dword [sym.imp.kernel32.dll_SetEvent]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [ebp + 0x7597c], ebx
call dword [edx + 0x108]
jmp 0x100219a0
push 1
push 0
push 0
push 0
call fcn.1009a600
push 1
push 0
push 0
push 1
call fcn.1009a600
push 1
push 0
push 0
push 2
call fcn.1009a600
push 1
push 0
push 0
push ebx
call fcn.1009a600
add esp, 0x40
push 0
push 0
push 0
push 0
push 0
push 1
push 0
push 7
push 0
call dword [sym.imp.message.dll_char_const____cdecl_MESSAGEGetString_int__int_]
add esp, 4
mov ecx, esp
mov dword [esp + 0x30], esp
jmp 0x10021993
mov eax, dword [ebp + 0x75974]
test eax, eax
jne 0x1002193c
cmp dword [ebp + 0x75a88], 0x58
je 0x1002193c
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x184]
test eax, eax
jne 0x10021841
push 1
push eax
push eax
push eax
call fcn.1009a600
push 1
push 0
push 0
push 1
call fcn.1009a600
push 1
push 0
push 0
push 2
call fcn.1009a600
push 1
push 0
push 0
push ebx
call fcn.1009a600
add esp, 0x40
push 0
push 0
push 0
push 0
push 0
push 1
push 0
push 2
push 0
call dword [sym.imp.message.dll_char_const____cdecl_MESSAGEGetString_int__int_]
add esp, 4
mov ecx, esp
mov dword [esp + 0x30], esp
jmp 0x10021993
push 1
push 0
push 0
push 0
call fcn.1009a600
push 1
push 0
push 0
push 1
call fcn.1009a600
push 1
push 0
push 0
push 2
call fcn.1009a600
push 1
push 0
push 0
push ebx
call fcn.1009a600
add esp, 0x40
push 0
push 0
push 0
push 0
push 0
push 1
push 0
push 2
push 0
call dword [sym.imp.message.dll_char_const____cdecl_MESSAGEGetString_int__int_]
add esp, 4
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.mfc42.dll_CString::CString_1
mov ecx, ebp
call fcn.10019f50
lea ecx, [esp + 0x18]
mov byte [esp + 0xd0], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0xd0], 0xffffffff
call sub.mfc42.dll_CString::CString
jmp case.0x10021644.202
mov eax, dword [esp + 0xe0]
mov ecx, 0xb
mov esi, eax
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x2e]
movsw word es:[edi], word [esi]
mov edx, dword [ecx]
lea esi, [ebp + 0x75941]
mov dword [esp + 0x20], edx
mov dl, byte [eax + 0x34]
mov al, byte [eax + 0x35]
mov cx, word [ecx + 4]
mov byte [esp + 0x1e], al
mov word [esp + 0x24], cx
mov byte [esp + 0x1f], dl
lea eax, [esp + 0x2d]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x10021a32
test cl, cl
je 0x10021a2e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x10021a32
add eax, 2
add esi, 2
test cl, cl
jne 0x10021a0a
xor eax, eax
jmp 0x10021a37
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je case.0x10021644.202
movsx ebx, byte [esp + 0x24]
movsx esi, word [esp + 0x20]
movsx edi, word [esp + 0x22]
lea eax, [esp + 0x70]
push ebx
lea ecx, [esp + 0x31]
add ebp, 0x75980
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], edi
call fcn.10035430
test eax, eax
jne 0x10021abb
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
push eax
lea edx, [esp + 0xc4]
lea eax, [esp + 0x30]
push edx
push eax
mov ecx, ebp
call fcn.10033880
lea ecx, [esp + 0xb8]
push ebx
lea edx, [esp + 0x31]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], edi
call fcn.10035430
movsx eax, byte [esp + 0x1f]
dec eax
je 0x10021ae9
dec eax
jne case.0x10021644.202
movsx eax, byte [esp + 0x1e]
push 0
push 0
push 0
push eax
lea ecx, [esp + 0x3d]
push 1
push ecx
mov ecx, ebp
call fcn.10034a00
jmp case.0x10021644.202
movsx edx, byte [esp + 0x1e]
push 0
push 0
push 0
push edx
lea eax, [esp + 0x3d]
push 0
push eax
mov ecx, ebp
call fcn.10034a00
jmp case.0x10021644.202
mov eax, dword [esp + 0xe0]
mov ecx, 0xb
mov esi, eax
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov bl, byte [eax + 0x34]
lea ecx, [eax + 0x2e]
movsw word es:[edi], word [esi]
mov edi, dword [ecx]
lea eax, [esp + 0x2d]
push eax
mov dword [esp + 0x14], edi
mov dx, word [ecx + 4]
lea ecx, [esp + 0x1c]
mov word [esp + 0x18], dx
call sub.mfc42.dll_CString::CString_1
mov ax, word [esp + 0x3e]
mov dword [esp + 0xd0], 3
cmp ax, 0x65
jne 0x10021b8b
lea ecx, [esp + 0x18]
push 0x100c4ef4
lea edx, [esp + 0x70]
push ecx
push edx
call sub.mfc42.dll_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 4
call sub.mfc42.dll_CString::operator
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x6c]
jmp 0x10021bd5
cmp ax, 0x3e8
jl 0x10021b97
cmp ax, 0x3f0
jle 0x10021ba3
cmp ax, 0x3f2
jl 0x10021bda
cmp ax, 0x3f3
jg 0x10021bda
lea eax, [esp + 0x18]
push 0x100c4ef0
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.mfc42.dll_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 5
call sub.mfc42.dll_CString::operator
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x20]
call sub.mfc42.dll_CString::CString
movsx eax, bl
cmp eax, 7
ja case.default.0x10021be6
jmp dword [eax*4 + 0x10022328]
mov edx, dword [esp + 0x18]
lea esi, [ebp + 0x75941]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x10021c1d
test cl, cl
je 0x10021c19
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x10021c1d
add eax, 2
add esi, 2
test cl, cl
jne 0x10021bf9
xor eax, eax
jmp 0x10021c22
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je case.default.0x10021be6
movsx eax, byte [esp + 0x44]
movsx esi, byte [esp + 0x14]
movsx edi, word [esp + 0x12]
movsx ebx, word [esp + 0x10]
push eax
push esi
push edi
add ebp, 0x75980
push ebx
push 6
push edx
mov ecx, ebp
call fcn.10034a00
test eax, eax
jne case.default.0x10021be6
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
push eax
lea ecx, [esp + 0x8c]
jmp 0x10021fa2
mov edx, dword [esp + 0x18]
lea esi, [ebp + 0x75941]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x10021ca5
test cl, cl
je 0x10021ca1
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x10021ca5
add eax, 2
add esi, 2
test cl, cl
jne 0x10021c81
xor eax, eax
jmp 0x10021caa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10021ce7
mov ax, word [esp + 0x14]
lea edx, [ebp + 0x12c]
movsx ecx, byte [esp + 0x44]
mov dword [edx], edi
push ecx
movsx ecx, word [esp + 0x14]
mov word [edx + 4], ax
movsx edx, al
movsx eax, word [esp + 0x16]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x75970]
push 0x31
call fcn.10032250
jmp case.default.0x10021be6
movsx eax, byte [esp + 0x44]
movsx esi, byte [esp + 0x14]
movsx edi, word [esp + 0x12]
movsx ebx, word [esp + 0x10]
push eax
push esi
push edi
add ebp, 0x75980
push ebx
push 0x31
push edx
mov ecx, ebp
call fcn.10034a00
test eax, eax
jne case.default.0x10021be6
lea ecx, [esp + 0xa8]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
call fcn.10033880
movsx eax, byte [esp + 0x44]
mov ecx, dword [esp + 0x18]
push eax
push esi
push edi
push ebx
push 0x31
push ecx
mov ecx, ebp
call fcn.10034a00
jmp case.default.0x10021be6
mov edx, dword [esp + 0x18]
lea esi, [ebp + 0x75941]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x10021d7f
test cl, cl
je 0x10021d7b
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x10021d7f
add eax, 2
add esi, 2
test cl, cl
jne 0x10021d5b
xor eax, eax
jmp 0x10021d84
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10021da1
lea ecx, [esp + 0x18]
mov dword [esp + 0xd0], 0xffffffff
call sub.mfc42.dll_CString::CString
jmp case.0x10021644.202
movsx eax, byte [esp + 0x44]
movsx esi, byte [esp + 0x14]
movsx edi, word [esp + 0x12]
movsx ebx, word [esp + 0x10]
push eax
push esi
push edi
add ebp, 0x75980
push ebx
push 0x3a
push edx
mov ecx, ebp
call fcn.10034a00
test eax, eax
jne case.default.0x10021be6
lea ecx, [esp + 0x98]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
call fcn.10033880
movsx eax, byte [esp + 0x44]
mov ecx, dword [esp + 0x18]
push eax
push esi
push edi
push ebx
push 0x3a
push ecx
mov ecx, ebp
call fcn.10034a00
jmp case.default.0x10021be6
mov edx, dword [esp + 0x18]
lea esi, [ebp + 0x75941]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x10021e3c
test cl, cl
je 0x10021e38
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x10021e3c
add eax, 2
add esi, 2
test cl, cl
jne 0x10021e18
xor eax, eax
jmp 0x10021e41
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10021e7e
mov ax, word [esp + 0x14]
lea edx, [ebp + 0x12c]
movsx ecx, byte [esp + 0x44]
mov dword [edx], edi
push ecx
movsx ecx, word [esp + 0x14]
mov word [edx + 4], ax
movsx edx, al
movsx eax, word [esp + 0x16]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x75970]
push 0x32
call fcn.10032250
jmp case.default.0x10021be6
movsx eax, byte [esp + 0x44]
movsx esi, byte [esp + 0x14]
movsx edi, word [esp + 0x12]
movsx ebx, word [esp + 0x10]
push eax
push esi
push edi
add ebp, 0x75980
push ebx
push 0x32
push edx
mov ecx, ebp
call fcn.10034a00
test eax, eax
jne case.default.0x10021be6
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call fcn.10033880
movsx eax, byte [esp + 0x44]
mov ecx, dword [esp + 0x18]
push eax
push esi
push edi
push ebx
push 0x32
push ecx
mov ecx, ebp
call fcn.10034a00
jmp case.default.0x10021be6
mov edx, dword [esp + 0x18]
lea esi, [ebp + 0x75941]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x10021f1a
test cl, cl
je 0x10021f16
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x10021f1a
add eax, 2
add esi, 2
test cl, cl
jne 0x10021ef6
xor eax, eax
jmp 0x10021f1f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10021f5c
mov ax, word [esp + 0x14]
lea edx, [ebp + 0x12c]
movsx ecx, byte [esp + 0x44]
mov dword [edx], edi
push ecx
movsx ecx, word [esp + 0x14]
mov word [edx + 4], ax
movsx edx, al
movsx eax, word [esp + 0x16]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x75970]
push 6
call fcn.10032250
jmp case.default.0x10021be6
movsx eax, byte [esp + 0x44]
movsx esi, byte [esp + 0x14]
movsx edi, word [esp + 0x12]
movsx ebx, word [esp + 0x10]
push eax
push esi
push edi
add ebp, 0x75980
push ebx
push 6
push edx
mov ecx, ebp
call fcn.10034a00
test eax, eax
jne case.default.0x10021be6
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
push eax
lea ecx, [esp + 0x84]
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, ebp
call fcn.10033880
movsx eax, byte [esp + 0x44]
mov ecx, dword [esp + 0x18]
push eax
push esi
push edi
push ebx
push 6
push ecx
mov ecx, ebp
call fcn.10034a00
jmp case.default.0x10021be6
mov edx, dword [esp + 0x18]
lea esi, [ebp + 0x75941]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x10021ffb
test cl, cl
je 0x10021ff7
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x10021ffb
add eax, 2
add esi, 2
test cl, cl
jne 0x10021fd7
xor eax, eax
jmp 0x10022000
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10022040
mov ax, word [esp + 0x14]
lea edx, [ebp + 0x12c]
movsx ecx, byte [esp + 0x44]
mov dword [edx], edi
push ecx
movsx ecx, word [esp + 0x14]
mov word [edx + 4], ax
movsx edx, al
movsx eax, word [esp + 0x16]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x75970]
push 0xa6
call fcn.10032250
jmp case.default.0x10021be6
movsx eax, byte [esp + 0x44]
movsx esi, byte [esp + 0x14]
movsx edi, word [esp + 0x12]
movsx ebx, word [esp + 0x10]
push eax
push esi
push edi
add ebp, 0x75980
push ebx
push 0xa6
push edx
mov ecx, ebp
call fcn.10034a00
test eax, eax
jne case.default.0x10021be6
lea ecx, [esp + 0x90]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
call fcn.10033880
movsx eax, byte [esp + 0x44]
mov ecx, dword [esp + 0x18]
push eax
push esi
push edi
push ebx
push 0xa6
push ecx
mov ecx, ebp
call fcn.10034a00
jmp case.default.0x10021be6
mov edx, dword [esp + 0x18]
lea esi, [ebp + 0x75941]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x100220e5
test cl, cl
je 0x100220e1
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x100220e5
add eax, 2
add esi, 2
test cl, cl
jne 0x100220c1
xor eax, eax
jmp 0x100220ea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1002212a
mov ax, word [esp + 0x14]
lea edx, [ebp + 0x12c]
movsx ecx, byte [esp + 0x44]
mov dword [edx], edi
push ecx
movsx ecx, word [esp + 0x14]
mov word [edx + 4], ax
movsx edx, al
movsx eax, word [esp + 0x16]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x75970]
push 0xbe
call fcn.10032250
jmp case.default.0x10021be6
movsx eax, byte [esp + 0x44]
movsx esi, byte [esp + 0x14]
movsx edi, word [esp + 0x12]
movsx ebx, word [esp + 0x10]
push eax
push esi
push edi
add ebp, 0x75980
push ebx
push 0xbe
push edx
mov ecx, ebp
call fcn.10034a00
test eax, eax
jne case.default.0x10021be6
lea ecx, [esp + 0xa0]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
call fcn.10033880
movsx eax, byte [esp + 0x44]
mov ecx, dword [esp + 0x18]
push eax
push esi
push edi
push ebx
push 0xbe
push ecx
mov ecx, ebp
call fcn.10034a00
jmp case.default.0x10021be6
mov edx, dword [esp + 0x18]
lea esi, [ebp + 0x75941]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x100221cf
test cl, cl
je 0x100221cb
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x100221cf
add eax, 2
add esi, 2
test cl, cl
jne 0x100221ab
xor eax, eax
jmp 0x100221d4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10022214
mov ax, word [esp + 0x14]
lea edx, [ebp + 0x12c]
movsx ecx, byte [esp + 0x44]
mov dword [edx], edi
push ecx
movsx ecx, word [esp + 0x14]
mov word [edx + 4], ax
movsx edx, al
movsx eax, word [esp + 0x16]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x75970]
push 0xbf
call fcn.10032250
jmp case.default.0x10021be6
movsx eax, byte [esp + 0x44]
movsx esi, byte [esp + 0x14]
movsx edi, word [esp + 0x12]
movsx ebx, word [esp + 0x10]
push eax
push esi
push edi
add ebp, 0x75980
push ebx
push 0xbf
push edx
mov ecx, ebp
call fcn.10034a00
test eax, eax
jne case.default.0x10021be6
lea ecx, [esp + 0xb0]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
call fcn.10033880
movsx eax, byte [esp + 0x44]
mov ecx, dword [esp + 0x18]
push eax
push esi
push edi
push ebx
push 0xbf
push ecx
mov ecx, ebp
call fcn.10034a00
jmp case.default.0x10021be6
mov esi, dword [esp + 0xe0]
mov ecx, 0xb
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp word [esp + 0x3e], 9
je case.0x10021644.202
lea edx, [esp + 0x2d]
lea ecx, [ebp + 0x75980]
push edx
call fcn.10034230
jmp case.0x10021644.202
mov eax, dword [esp + 0xe0]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x5c], edx
mov dl, byte [eax + 6]
mov cx, word [ecx + 4]
mov byte [esp + 0x20], dl
mov eax, dword [esp + 0x20]
mov word [esp + 0x60], cx
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, ebp
call fcn.10005710
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc4
ret 0xc