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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 1
jne 0x4220f2
cmp dword [ebp + 0xc], 1
jne 0x4220e6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
jmp 0x4220ed
mov dword [ebp - 0xc], 0
jmp 0x422440
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 2
jne 0x4221a5
cmp dword [ebp + 0xc], 1
jne 0x422115
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
jmp 0x4221a0
cmp dword [ebp + 0xc], 2
jne 0x422129
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
jmp 0x4221a0
cmp dword [ebp + 0xc], 0x100
jne 0x422140
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
jmp 0x4221a0
cmp dword [ebp + 0xc], 0x200
jne 0x422157
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4221a0
cmp dword [ebp + 0xc], 0x400
jne 0x42216e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x4221a0
cmp dword [ebp + 0xc], 0x40
jne 0x422182
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4221a0
cmp dword [ebp + 0xc], 0x80
jne 0x422199
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4221a0
mov dword [ebp - 0xc], 0
jmp 0x422440
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 3
jne 0x42224a
cmp dword [ebp + 0xc], 1
jne 0x4221c6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x422245
cmp dword [ebp + 0xc], 2
jne 0x4221da
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
jmp 0x422245
cmp dword [ebp + 0xc], 4
jne 0x4221ee
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
jmp 0x422245
cmp dword [ebp + 0xc], 8
jne 0x422202
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0xc], ecx
jmp 0x422245
cmp dword [ebp + 0xc], 0x10
jne 0x422216
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0xc], ecx
jmp 0x422245
cmp dword [ebp + 0xc], 0x20
jne 0x42222a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0xc], ecx
jmp 0x422245
cmp dword [ebp + 0xc], 0x40
jne 0x42223e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc], ecx
jmp 0x422245
mov dword [ebp - 0xc], 0
jmp 0x422440
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 4
jne 0x422440
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00422091
add esp, 8
test eax, eax
jne 0x422272
xor eax, eax
jmp 0x42255d
cmp dword [ebp + 0xc], 1
jne 0x422289
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 2
jne 0x4222a0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 4
jne 0x4222b7
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 8
jne 0x4222ce
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x10
jne 0x4222e5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x20
jne 0x4222fc
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x40
jne 0x422313
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x800
jne 0x42232d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x1000
jne 0x422347
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x2000
jne 0x422361
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x4000
jne 0x42237b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x100000
jne 0x422395
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x200000
jne 0x4223af
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x400000
jne 0x4223c6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x8000
jne 0x4223dd
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x10000
jne 0x4223f4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x20000
jne 0x42240b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x40000
jne 0x422422
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0xc], ecx
jmp 0x422440
cmp dword [ebp + 0xc], 0x80000
jne 0x422439
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0xc], ecx
jmp 0x422440
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x54], 0
cmp dword [ebp - 0xc], 0
je 0x42250b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x78], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x10], 0
je 0x4224c7
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
and eax, 0x80000000
test eax, eax
jne 0x4224a9
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0x4c]
add esp, 0xc
jmp 0x4224c7
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
and eax, 0x7fffffff
push eax
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x4c]
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x422502
push 0xc0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
sar ecx, 0x10
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
sar eax, 0x10
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
sar edx, 0x10
push edx
call fcn.00469490
add esp, 0x14
mov dword [ebp - 8], 1
jmp 0x42251a
mov eax, dword [ebp + 8]
mov dword [eax + 0x6c], 0
or eax, 0xffffffff
jmp 0x42255d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x54], 0
je 0x422451
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
and eax, 0x20000
test eax, eax
je 0x42255a
push 5
call fcn.00450317
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x54]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret