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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov dword [esp + 0x2c], edx
cmp dword [esi + 0x40], edx
je 0x4229fd
cmp byte [esi + 0x25], dl
je 0x4229fd
mov eax, dword [esi + 0x50]
lea edi, [esi + 0x3c]
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x34], eax
mov eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x42280d
mov eax, dword [esp + 0x18]
mov ebx, dword [esi + 0x38]
mov edx, dword [edi]
cmp ebx, edx
jne 0x422838
test eax, eax
jne 0x422838
mov ecx, dword [ebp + 8]
push edi
push dword [esi + 0x2c]
mov dword [edi], eax
push dword [esi + 0x40]
mov dword [esi + 0x38], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov edx, dword [edi]
mov ebx, dword [esi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x74]
mov ecx, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
sub ecx, eax
cmp ecx, dword [esi + 0x28]
jbe 0x422854
mov edi, dword [esi + 0x28]
add edi, eax
sub edi, dword [esp + 0x1c]
xor eax, eax
mov ecx, eax
cmp byte [esi + 0x26], al
je 0x42288c
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x4c]
sbb eax, dword [esi + 0x5c]
cmp dword [esp + 0x2c], eax
jb 0x42288c
mov eax, dword [esp + 0x20]
ja 0x422881
cmp edi, eax
jb 0x42288c
cmp byte [esi + 0x24], cl
mov edi, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [esp + 0x24]
sub edx, ebx
push eax
push ecx
mov dword [esp + 0x28], edx
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ecx, [esi + 0x60]
push eax
mov eax, dword [esi + 0x40]
add eax, ebx
push eax
lea edx, [edi + edx]
call fcn.00411f23
mov edx, dword [esi + 0x78]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
add dword [esi + 0x38], eax
add dword [esi + 0x50], eax
push 0
pop eax
adc dword [esi + 0x54], eax
sub edx, dword [esp + 0x1c]
mov ecx, edx
mov dword [esi + 0x34], ebx
add ecx, dword [esi + 0x58]
mov dword [esi + 0x58], ecx
adc eax, dword [esi + 0x5c]
cmp byte [esi + 0x26], 0
mov dword [esi + 0x5c], eax
je 0x4228ff
cmp eax, dword [esi + 0x4c]
jb 0x4228ff
ja 0x4228f4
cmp ecx, dword [esi + 0x48]
jb 0x4228ff
xor eax, eax
inc eax
xor ecx, ecx
mov byte [esp + 0x13], al
jmp 0x422907
xor ecx, ecx
mov al, cl
mov byte [esp + 0x13], cl
cmp dword [esp + 0x28], 0
jne 0x422931
cmp dword [esp + 0x20], 0
jne 0x422919
test edx, edx
je 0x422931
cmp ebx, 1
je 0x422931
test al, al
je 0x422927
cmp ebx, 3
jne 0x422931
mov byte [esp + 0x12], cl
cmp edx, edi
jb 0x422972
jmp 0x422938
xor eax, eax
inc eax
mov byte [esp + 0x12], al
mov eax, dword [esi + 0x78]
sub eax, dword [esp + 0x14]
mov edx, dword [esi + 0x70]
add edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004207cb
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x74]
jne 0x422964
xor ecx, ecx
mov dword [esi + 0x78], ecx
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x422a02
cmp byte [esp + 0x12], al
jne 0x4229b6
mov edx, dword [ebp + 0x10]
lea edi, [esi + 0x3c]
mov eax, dword [esp + 0x18]
test edx, edx
je 0x42280d
mov ecx, dword [esi + 0x50]
sub ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x54]
sbb eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
lea ecx, [esi + 0x58]
push ecx
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x3c]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0xc]
lea edi, [esi + 0x3c]
test eax, eax
je 0x422809
jmp 0x422a02
cmp dword [esp + 0x28], 0
jne 0x4229fd
xor eax, eax
inc eax
cmp ebx, eax
jne 0x4229e0
cmp byte [esi + 0x24], 0
je 0x4229f7
cmp byte [esi + 0x26], 0
je 0x4229f7
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x58]
jne 0x4229fd
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x5c]
jmp 0x4229f5
cmp byte [esp + 0x13], 0
je 0x4229fd
cmp ebx, 3
je 0x4229fd
cmp byte [esi + 0x24], 0
je 0x4229f7
cmp ebx, 4
jne 0x4229fd
mov eax, dword [esp + 0x18]
jmp 0x422a02
xor ebx, ebx
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc