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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
cmp word [edi + 0x38], 0xef53
jne 0x10022dc8
mov eax, dword [edi + 0x18]
xor ebp, ebp
mov dword [esi], eax
mov eax, dword [edi + 0x1c]
cmp eax, ebp
mov dword [esi + 4], eax
je 0x10022b77
cmp dword [esi], eax
jne 0x10022dc8
mov eax, dword [esi]
cmp eax, 6
ja 0x10022dc8
lea ecx, [eax + 0xa]
mov dword [esi], ecx
mov eax, dword [edi]
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
mov edx, dword [esi + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebp
mov eax, dword [edi + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebp
mov eax, dword [edi + 0x10]
cmp edx, 2
mov dword [esi + 0x20], eax
jb 0x10022dc8
cmp edx, eax
jbe 0x10022dc8
xor eax, eax
cmp ecx, 0xa
sete al
cmp dword [edi + 0x14], eax
jne 0x10022dc8
mov eax, dword [edi + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x24]
mov ebx, dword [esi + 0x24]
mov dword [esi + 0x28], eax
cmp ebx, eax
jne 0x10022dc8
cmp ebx, ebp
je 0x10022dc8
mov eax, dword [edi + 0x28]
cmp eax, 1
mov dword [esi + 0x2c], eax
jb 0x10022dc8
cmp eax, edx
ja 0x10022dc8
mov eax, dword [edi + 0x2c]
push 0xb
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x4c]
pop edx
cmp eax, ebp
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov word [esi + 0x48], 0x80
je 0x10022c7a
mov eax, dword [edi + 0x54]
mov dword [esi + 0x44], eax
mov ax, word [edi + 0x58]
cmp dword [esi + 0x44], edx
mov word [esi + 0x48], ax
jb 0x10022dc8
push 1
pop ebx
shl ebx, cl
movzx edx, ax
cmp edx, ebx
ja 0x10022dc8
cmp ax, 0x80
jb 0x10022dc8
xor ecx, ecx
push 1
pop eax
shl eax, cl
cmp eax, edx
je 0x10022c72
inc ecx
cmp ecx, 0x20
jb 0x10022c60
or ecx, 0xffffffff
cmp ecx, ebp
jl 0x10022dc8
mov ax, word [edi + 0x5a]
push 0x10
mov word [esi + 0x4a], ax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x54], eax
lea eax, [edi + 0x68]
push eax
lea eax, [esi + 0x58]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [edi + 0x78]
push 0x10
push eax
lea eax, [esi + 0x68]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [edi + 0x88]
push 0x40
push eax
lea eax, [esi + 0x78]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0xe0]
add esp, 0x24
mov dword [esi + 0xb8], eax
mov ax, word [edi + 0xfe]
mov word [esi + 0xbc], ax
mov eax, dword [edi + 0x108]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0x50]
shr eax, 7
test al, 1
je 0x10022d0f
mov eax, dword [edi + 0x150]
or dword [esi + 0x10], ebp
or dword [esi + 0x14], eax
mov eax, dword [edi + 0x158]
or dword [esi + 0x18], ebp
or dword [esi + 0x1c], eax
mov ebp, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
push 0x3f
xor edx, edx
pop ecx
mov dword [esp + 0x10], ebp
sub ecx, dword [esi]
push 1
pop eax
call fcn.100e1140
cmp ebx, edx
jb 0x10022d3a
ja 0x10022dc8
cmp ebp, eax
jae 0x10022dc8
mov ax, word [edi + 0x15c]
mov word [esi + 0xc4], ax
mov eax, dword [edi + 0x178]
mov dword [esi + 0xc8], eax
mov eax, dword [edi + 0x17c]
test ebx, ebx
mov dword [esi + 0xcc], eax
ja 0x10022d6b
jb 0x10022dc8
cmp ebp, 1
jb 0x10022dc8
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jb 0x10022d7b
ja 0x10022dc8
mov eax, dword [esi + 0x18]
cmp eax, ebp
ja 0x10022dc8
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 8]
xor ecx, ecx
xor ebp, ebp
xor esi, esi
add edx, eax
push ecx
adc esi, ecx
sub edx, 1
sbb esi, ebp
push eax
push esi
push edx
call fcn.100e0fb0
mov esi, eax
mov eax, edi
add eax, dword [esp + 0x10]
mov ecx, ebp
push ebp
push edi
adc ecx, ebx
sub eax, 1
sbb ecx, ebp
mov dword [esp + 0x24], edx
push ecx
push eax
call fcn.100e0fb0
cmp eax, esi
jne 0x10022dc8
cmp edx, dword [esp + 0x1c]
jne 0x10022dc8
mov al, 1
jmp 0x10022dca
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4