Function at 0x100227f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x10050050]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov esi, ecx
push esi
push 0x10048ebc
push str.LoadWordLibraryWithExtraLength
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
call fcn.10014390
xor eax, eax
push 0xa
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x64]
push 0x10048f28
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x14], 0xffffffff
jne 0x1002288e
mov eax, 0x20
mov edi, edi
cmp dword [eax*4 + 0x10757908], 0
je 0x10022885
inc eax
cmp eax, 0x40
jl 0x10022870
jmp 0x10022b11
mov dword [esp + 0x14], eax
jmp 0x1002296a
mov eax, dword [0x10755018]
xor ebx, ebx
lea edi, [eax + 0x9da8]
lea esi, [eax + 0x11ea8]
cmp dword [esi], 0
jne 0x100228df
mov ecx, dword [esp + 0x10]
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100228d6
test dx, dx
je 0x100228d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100228d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100228b0
xor eax, eax
jmp 0x100228db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10022903
cmp dword [esp + 0x14], 0xffffffff
jne 0x100228f4
cmp dword [ebx*4 + 0x10757908], 0
jne 0x100228f4
mov dword [esp + 0x14], ebx
inc ebx
add edi, 0x200
add esi, 4
cmp ebx, 0x20
jl 0x100228a1
cmp ebx, 0x20
je 0x10022966
mov edx, dword [0x10755018]
mov esi, ebx
shl esi, 6
lea edi, [esi + edx + 0x11fa8]
call fcn.10014930
test eax, eax
jne 0x100229de
mov eax, dword [0x10755018]
lea edi, [esi + eax + 0x11fa8]
call fcn.100149d0
test eax, eax
je 0x10022962
mov dword [ebx*4 + 0x10757908], eax
mov dword [ebx*4 + 0x10757a08], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1002656f
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x14], 0xffffffff
je 0x10022b11
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.1002862c
add esp, 8
test eax, eax
jne 0x10022b11
mov edi, dword [esp + 0x34]
mov dword [esp + 0x1c], edi
test edi, edi
jle 0x10022b11
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100229a0
sub eax, edx
sar eax, 1
mov ecx, str.3.res
lea eax, [esi + eax*2 - 0x10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10022a04
test dx, dx
je 0x100229da
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10022a04
add eax, 4
add ecx, 4
test dx, dx
jne 0x100229b8
xor eax, eax
jmp 0x10022a09
mov dword [ebx*4 + 0x10757908], eax
mov dword [ebx*4 + 0x10757a08], 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1002656f
mov esp, ebp
pop ebp
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10022a1a
mov eax, 0x200000
cmp edi, 0x200000
jl 0x10022a1c
mov eax, edi
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x10755018]
add ebx, eax
mov eax, esi
shl eax, 6
lea edi, [eax + ecx + 0x11fa8]
call fcn.10014af0
mov edi, eax
test edi, edi
je 0x10022b11
cmp esi, 1
jne 0x10022ac0
mov eax, dword [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10022a53
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
mov ecx, str.2.res
lea eax, [edx + eax*2 - 0xa]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10022a96
test dx, dx
je 0x10022a92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10022a96
add eax, 4
add ecx, 4
test dx, dx
jne 0x10022a70
xor eax, eax
jmp 0x10022a9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10022ac0
mov eax, dword [esp + 0x10]
push eax
push ecx
call fcn.10015400
add esp, 4
push eax
push str.__________
push str.LoadWordLibraryWithExtraLength
call fcn.10014390
add esp, 0x10
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.10014570
add esp, 8
test eax, eax
jne 0x10022b38
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor esi, esi
xor ebx, ebx
cmp dword [ebx*8 + 0x10755024], edi
je 0x10022af5
inc ebx
cmp ebx, 0x400
jl 0x10022ae1
jmp 0x10022b11
mov eax, dword [ebx*8 + 0x10755020]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx*8 + 0x10755020], esi
mov dword [ebx*8 + 0x10755024], esi
push 0x10048f88
push str.LoadWordLibraryWithExtraLength
call fcn.10014390
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1002656f
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0x14091994
je 0x10022b6e
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor esi, esi
xor ebx, ebx
jmp 0x10022b50
cmp dword [ebx*8 + 0x10755024], edi
je 0x10022b64
inc ebx
cmp ebx, 0x400
jl 0x10022b50
jmp 0x10022b11
mov ecx, dword [ebx*8 + 0x10755020]
push ecx
jmp 0x10022afd
mov edx, dword [esp + 0x10]
mov ecx, dword [0x10755018]
push 0x100
mov eax, esi
push edx
shl eax, 9
lea edx, [eax + ecx + 0x9da8]
push edx
call fcn.10026d87
mov eax, dword [0x10755018]
mov ecx, dword [esp + 0x70]
mov dword [eax + esi*4 + 0x11da8], ebx
add esp, 0xc
mov dword [esi*4 + 0x10757908], edi
pop edi
mov dword [esi*4 + 0x10757a08], 1
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1002656f
mov esp, ebp
pop ebp
ret