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

Disassembly:
sub esp, 0x88
mov ecx, dword [esp + 0x90]
xor eax, eax
push ebx
push ebp
xor ebp, ebp
cmp dword [ecx + 8], eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], eax
jle 0x423260
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax]
mov ebx, dword [ecx + edx*4 + 8]
lea esi, [ecx + edx*4]
mov edx, dword [esi + 4]
and ebx, 0x3ff
cmp edx, 1
mov dword [esp + 0x54], esi
mov dword [esp + 0x48], edx
jne 0x422d06
movzx ecx, byte [esi]
mov edx, ecx
and ecx, 0x1f
mov edi, 1
shr edx, 5
shl edi, cl
lea edx, [esp + edx*4 + 0x10]
or dword [edx], edi
mov edx, dword [esp + 0x48]
jmp 0x422d8e
cmp edx, 3
jne 0x422d46
mov ecx, dword [esi]
mov edi, dword [ecx]
or dword [esp + 0x10], edi
mov edi, dword [ecx + 4]
or dword [esp + 0x14], edi
mov edi, dword [ecx + 8]
or dword [esp + 0x18], edi
mov edi, dword [ecx + 0xc]
or dword [esp + 0x1c], edi
mov edi, dword [ecx + 0x10]
or dword [esp + 0x20], edi
mov edi, dword [ecx + 0x14]
or dword [esp + 0x24], edi
mov edi, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
or dword [esp + 0x28], edi
or dword [esp + 0x2c], ecx
jmp 0x422d8e
cmp edx, 5
jne 0x423245
or ecx, 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x80]
test cl, 0x40
jne 0x422d85
and dword [esp + 0x10], 0xfffffbff
test cl, cl
jns 0x422d8e
and dword [esp + 0x10], 0xfffffffe
test ebx, ebx
je 0x422eea
test bl, 0x20
je 0x422dd8
mov ecx, dword [esp + 0x10]
and ecx, 0x400
mov ecx, 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
je 0x423245
or dword [esp + 0x10], 0x400
test bl, bl
js 0x423223
test bl, 4
je 0x422e57
cmp edx, 1
jne 0x422df7
test dword [esi + 8], 0x1000
je 0x423223
mov ecx, dword [eax + 0x60]
and dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x64]
and dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x68]
and dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x6c]
and dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x70]
and dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x74]
and dword [esp + 0x24], ecx
mov edi, dword [esp + 0x2c]
and edi, dword [eax + 0x7c]
mov ecx, dword [esp + 0x28]
and ecx, dword [eax + 0x78]
mov dword [esp + 0x2c], edi
or edi, ecx
or edi, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
or edi, dword [esp + 0x20]
or edi, dword [esp + 0x1c]
or edi, dword [esp + 0x18]
or edi, dword [esp + 0x14]
or edi, dword [esp + 0x10]
je 0x423245
test bl, 8
je 0x422eea
cmp edx, 1
jne 0x422e72
test dword [esi + 8], 0x1000
jne 0x423223
mov ecx, dword [eax + 0x60]
mov edi, dword [eax + 0x64]
mov ebx, dword [eax + 0x78]
not edi
not ecx
and dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
and ecx, edi
mov edi, dword [eax + 0x68]
not edi
and dword [esp + 0x18], edi
mov edi, dword [eax + 0x6c]
not edi
and dword [esp + 0x1c], edi
mov edi, dword [eax + 0x70]
not edi
and dword [esp + 0x20], edi
mov edi, dword [eax + 0x74]
not edi
and dword [esp + 0x24], edi
mov edi, dword [esp + 0x28]
not ebx
and edi, ebx
mov ebx, dword [eax + 0x7c]
mov eax, dword [esp + 0x2c]
not ebx
and eax, ebx
mov dword [esp + 0x2c], eax
or eax, edi
or eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
or eax, dword [esp + 0x20]
mov dword [esp + 0x28], edi
or eax, dword [esp + 0x1c]
or eax, dword [esp + 0x18]
or eax, ecx
or eax, dword [esp + 0x10]
je 0x423245
xor edi, edi
test ebp, ebp
mov dword [esp + 0x50], edi
jle 0x4231b8
mov ecx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
lea eax, [ebp + ebp*2]
lea eax, [ecx + eax*4]
mov dword [esp + 0x3c], eax
mov eax, ebp
shl eax, 5
add eax, ebx
add ecx, 4
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], ecx
add ebx, 8
lea ebx, [ebx]
cmp edx, 1
jne 0x422f57
movzx ecx, byte [esi]
mov eax, ecx
shr eax, 5
lea eax, [eax + edi*8]
and ecx, 0x1f
mov edi, edx
shl edi, cl
mov ecx, dword [esp + 0xa8]
test dword [ecx + eax*4], edi
je 0x423192
mov eax, dword [ebx + 8]
and eax, dword [esp + 0x20]
mov ebp, dword [ebx + 0x10]
and ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
and edi, dword [ebx + 4]
mov esi, dword [ebx]
and esi, dword [esp + 0x18]
mov edx, dword [ebx - 4]
and edx, dword [esp + 0x14]
mov ecx, dword [ebx - 8]
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0xc]
and eax, dword [esp + 0x24]
and ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x2c]
and eax, dword [ebx + 0x14]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x94], eax
or eax, ebp
or eax, dword [esp + 0x8c]
mov dword [esp + 0x7c], edx
or eax, dword [esp + 0x88]
mov dword [esp + 0x80], esi
or eax, edi
or eax, esi
or eax, edx
or eax, ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x90], ebp
je 0x423186
mov edx, dword [esp + 0x10]
mov eax, dword [ebx - 8]
mov ecx, edx
mov ebp, dword [esp + 0x1c]
not ecx
and ecx, eax
not eax
and edx, eax
mov eax, dword [ebx - 4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
mov esi, edx
not esi
and esi, eax
not eax
and edx, eax
mov eax, dword [ebx]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
mov edi, edx
not ebp
not edi
and edi, eax
not eax
and edx, eax
mov eax, dword [ebx + 4]
and ebp, eax
not eax
and dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
not edx
and edx, eax
not eax
and dword [esp + 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x24]
not edx
and edx, eax
not eax
and dword [esp + 0x24], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x28]
not edx
and edx, eax
not eax
and dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
not eax
mov dword [esp + 0x70], edx
mov edx, dword [ebx + 0x14]
and eax, edx
mov dword [esp + 0x74], eax
or eax, dword [esp + 0x70]
mov dword [esp + 0x64], ebp
or eax, dword [esp + 0x6c]
mov dword [esp + 0x58], ecx
or eax, dword [esp + 0x68]
mov dword [esp + 0x5c], esi
or eax, ebp
mov ebp, dword [esp + 0x2c]
or eax, edi
or eax, esi
or eax, ecx
mov ecx, edx
not ecx
and ebp, ecx
mov dword [esp + 0x2c], ebp
or ebp, dword [esp + 0x28]
mov dword [esp + 0x60], edi
or ebp, dword [esp + 0x24]
or ebp, dword [esp + 0x20]
or ebp, dword [esp + 0x1c]
or ebp, dword [esp + 0x18]
or ebp, dword [esp + 0x14]
or ebp, dword [esp + 0x10]
test eax, eax
je 0x42315d
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov ecx, 8
lea esi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x44]
mov ecx, 8
lea esi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov dword [eax + 4], edx
cmp dword [ecx], 0
jle 0x423142
mov ecx, edx
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
call fcn.0042d07a
mov ecx, dword [esp + 0x40]
add esp, 4
test eax, eax
mov dword [ecx + 8], eax
je 0x42326d
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
add edx, edx
add edx, edx
push edx
push ecx
push eax
call fcn.0042e650
mov eax, dword [esp + 0x48]
add esp, 0xc
jmp 0x42314c
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
add dword [esp + 0x30], 1
add dword [esp + 0x4c], 0x20
add eax, 0xc
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0xa0]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
mov edi, dword [eax + ecx*4]
add esi, 0xfffffffc
call fcn.00420100
test eax, eax
jl 0x42327a
test ebp, ebp
je 0x4231b4
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
add dword [esp + 0x44], 0x20
add dword [esp + 0x34], 0xc
add edi, 1
add ebx, 0x20
cmp edi, ebp
mov dword [esp + 0x50], edi
jl 0x422f30
jmp 0x4231b8
mov ebp, dword [esp + 0x30]
cmp dword [esp + 0x50], ebp
jne 0x423245
mov edx, dword [esp + 0xa0]
mov edi, ebp
shl edi, 5
add edi, dword [esp + 0xa8]
mov ecx, 8
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x40]
mov edi, dword [eax + ecx*4]
mov eax, dword [esp + 0xa4]
lea edx, [ebp + ebp*2]
lea esi, [eax + edx*4]
push 4
mov dword [esi], 1
mov dword [esi + 4], 1
call fcn.0042d07a
add esp, 4
test eax, eax
mov dword [esi + 8], eax
je 0x4232b1
add ebp, 1
mov dword [eax], edi
mov dword [esp + 0x30], ebp
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xa0]
add eax, 1
cmp eax, dword [ecx + 8]
mov dword [esp + 0x40], eax
jl 0x422cb6
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x88
ret
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov ebp, dword [esp + 0x30]
test ebp, ebp
jle 0x4232a3
mov esi, dword [esp + 0xa4]
add esi, 8
lea esp, [esp]
mov ecx, dword [esi]
push ecx
call fcn.0042d52e
add esp, 4
add esi, 0xc
sub ebp, 1
jne 0x423290
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x88
ret
mov dword [esi + 4], 0
mov dword [esi], 0
jmp 0x42327e