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

Disassembly:
sub esp, 0x58
mov edx, dword [esp + 0x60]
mov eax, ecx
mov ecx, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x30], eax
add esi, edx
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x18], eax
lea eax, [ecx + ebp]
push edi
xor edi, edi
mov byte [esp + 0xe], 0
mov byte [esp + 0xd], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], esi
cmp ebp, eax
jge 0x422560
push ebx
mov eax, edx
mov dword [esp + 0x3c], eax
cmp edx, esi
jge 0x42254b
mov edx, dword [esp + 0x78]
mov dword [esp + 0x40], edx
push 0x10
pop ebx
cmp edx, ebx
movzx eax, ax
mov esi, ebx
mov dword [esp + 0x58], eax
cmovl esi, edx
cmp ecx, ebx
mov edx, ebx
mov dword [esp + 0x28], esi
cmovl edx, ecx
mov ecx, dword [esp + 0x28]
movzx esi, dx
push esi
mov dword [esp + 0x38], edx
movzx edx, cx
push edx
movzx ecx, bp
push ecx
push eax
push dword [esp + 0x30]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edx
call fcn.0042157e
mov eax, dword [esp + 0x34]
xor ecx, ecx
imul eax, dword [esp + 0x28]
mov esi, dword [esp + 0x6c]
add esi, edi
mov byte [esp + 0x24], 1
inc edi
mov byte [esp + 0x74], 1
mov dword [esp + 0x48], edi
mov dword [esp + 0x5c], eax
mov edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
xor eax, eax
and dword [esp + 0x1c], eax
and dword [esp + 0x18], eax
mov byte [esi], 0
jmp 0x4223f5
cmp dword [esp + 0x1c], 0
mov edx, ecx
mov bl, byte [esp + 0x74]
mov byte [esp + 0x13], bl
jne 0x4223b3
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
jmp 0x4223bb
mov ebx, dword [esp + 0x14]
cmp dword [ebx], eax
jne 0x4223c1
inc dword [esp + 0x1c]
jmp 0x4223eb
cmp dword [esp + 0x18], 0
jne 0x4223d5
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x74], 0
mov ecx, dword [ecx]
jmp 0x4223e7
mov ebx, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
mov byte [esp + 0x74], cl
mov ecx, edx
cmp dword [ebx], edx
jne 0x4223ff
inc dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
dec edx
add dword [esp + 0x14], 4
mov dword [esp + 0x2c], edx
test edx, edx
jg 0x42239a
jmp 0x42240e
mov cl, byte [esp + 0x13]
mov byte [esp + 0x74], cl
mov ecx, edx
mov byte [esp + 0x24], 0
mov ebx, dword [esp + 0x1c]
mov edx, eax
cmp ebx, dword [esp + 0x18]
mov ebx, dword [esp + 0x6c]
cmovbe edx, ecx
cmovbe ecx, eax
cmp byte [esp + 0x12], 0
je 0x42242f
cmp edx, dword [esp + 0x30]
je 0x42245e
or byte [esi], 2
mov eax, edx
shr eax, 8
mov byte [edi + ebx], dl
mov byte [edi + ebx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [edi + ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + ebx + 3], al
add edi, 4
mov byte [esp + 0x12], 1
mov dword [esp + 0x30], edx
jmp 0x422462
mov edx, dword [esp + 0x30]
cmp byte [esp + 0x74], 0
jne 0x422521
mov al, byte [esi]
or al, 8
cmp byte [esp + 0x24], 0
mov byte [esi], al
je 0x4224b7
cmp byte [esp + 0x11], 0
je 0x422487
cmp ecx, dword [esp + 0x44]
je 0x4224c0
or al, 4
mov byte [esp + 0x11], 1
mov byte [esi], al
mov eax, ecx
shr eax, 8
mov byte [edi + ebx], cl
mov byte [edi + ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + ebx + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + ebx + 3], al
add edi, 4
mov dword [esp + 0x44], ecx
jmp 0x4224c0
or al, 0x10
mov byte [esp + 0x11], 0
mov byte [esi], al
push dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push dword [esp + 0x40]
lea edx, [edi + ebx]
push dword [esp + 0x38]
call fcn.0042204f
add edi, eax
test eax, eax
jne 0x422521
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x54]
mov edi, dword [esp + 0x50]
push dword [esp + 0x5c]
mov byte [esi], 1
push dword [esp + 0x64]
mov esi, dword [esp + 0x30]
push esi
mov byte [esp + 0x26], al
mov byte [esp + 0x25], al
call fcn.0042157e
mov edx, dword [esp + 0x5c]
lea eax, [edi + ebx]
shl edx, 2
push edx
push esi
push eax
call fcn.0041863c
add edi, edx
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
add eax, 0x10
mov esi, dword [esp + 0x60]
sub edx, 0x10
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
cmp eax, esi
jl 0x422313
mov edx, dword [esp + 0x70]
add ebp, 0x10
sub ecx, 0x10
mov dword [esp + 0x7c], ecx
cmp ebp, dword [esp + 0x64]
jl 0x4222fd
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x58
ret 0x14