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

Disassembly:
push 0xffffffffffffffff
push 0x45d9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x46c35c]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x14]
xor ebp, ebp
cmp eax, ebp
jne 0x422b15
xor eax, eax
jmp 0x422e82
push ebx
push edi
mov edi, dword [esp + 0x84]
cmp edi, ebp
mov ebx, 8
jne 0x422b3a
mov ecx, dword [esi + 0x28]
xor eax, eax
cmp ecx, ebx
setne al
dec eax
and eax, 0xfffffff0
add eax, 0x18
mov edi, eax
mov eax, dword [esi + 0x18]
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
xor ecx, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], ecx
push 2
mov dword [esp + 0x48], edx
mov word [esp + 0x20], cx
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x14]
push 0x4608a8
push edx
mov dword [esp + 0x2c], 0x28
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov word [esp + 0x38], 1
mov word [esp + 0x3a], di
mov dword [esp + 0x3c], ebp
call fcn.0043bf40
add esp, 0xc
cmp edi, ebx
je 0x422bef
cmp edi, 0x18
je 0x422bd9
cmp edi, 0x20
jne 0x422e21
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
imul eax, ecx
shl eax, 2
mov dword [esp + 0x1a], 0x36
jmp 0x422c00
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
imul eax, ecx
lea eax, [eax + eax*2]
mov dword [esp + 0x1a], 0x36
jmp 0x422c00
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
imul eax, ecx
mov dword [esp + 0x1a], 0x436
lea ecx, [esp + 0x48]
mov dword [esp + 0x12], eax
call fcn.0041dfc0
mov ecx, dword [esp + 0x80]
push 0x22
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x80], ebp
call fcn.0041e310
test eax, eax
lea ecx, [esp + 0x48]
jne 0x422c43
mov dword [esp + 0x78], 0xffffffff
call fcn.0041e160
xor eax, eax
jmp 0x422e80
push ebp
push 0xe
lea edx, [esp + 0x18]
push edx
call fcn.0041dd90
push ebp
push 0x28
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
call fcn.0041dd90
cmp edi, ebx
je 0x422e0b
cmp edi, 0x18
je 0x422cb7
cmp edi, 0x20
jne 0x422e6a
mov eax, dword [esi + 0x1c]
lea edi, [eax - 1]
cmp edi, ebp
jl 0x422e6a
jmp 0x422c90
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax*4]
imul eax, edi
push ebp
lea eax, [ecx + eax*4]
push edx
push eax
lea ecx, [esp + 0x54]
call fcn.0041dd90
dec edi
jns 0x422c90
jmp 0x422e6a
mov eax, dword [esi + 0x28]
cmp eax, 0x18
jne 0x422cf5
mov eax, dword [esi + 0x1c]
lea edi, [eax - 1]
cmp edi, ebp
jl 0x422e6a
lea ecx, [ecx]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + eax*2]
imul eax, edi
push ebp
lea ecx, [ecx + eax*2]
add ecx, eax
push edx
push ecx
lea ecx, [esp + 0x54]
call fcn.0041dd90
dec edi
jns 0x422cd0
jmp 0x422e6a
cmp eax, 0x20
jne 0x422e6a
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
imul eax, ecx
lea edx, [eax + eax*2]
push edx
call fcn.0043c534
mov ecx, dword [esi + 0x18]
mov ebp, eax
mov eax, dword [esi + 0x1c]
imul eax, ecx
lea ecx, [eax + eax*2]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x1c]
add esp, 4
xor ecx, ecx
test eax, eax
jle 0x422dd7
mov edx, dword [esi + 0x18]
xor eax, eax
test edx, edx
jle 0x422dcb
lea ecx, [ecx]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x14]
mov edi, edx
imul edx, ecx
imul edi, ecx
add edx, eax
add edi, eax
mov bl, byte [ebx + edi*4]
mov dword [esp + 0x84], edx
mov edi, edx
lea edx, [ebp + edx*2]
mov byte [edi + edx], bl
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x14]
mov edi, edx
imul edx, ecx
imul edi, ecx
add edx, eax
add edi, eax
mov bl, byte [ebx + edi*4 + 1]
mov dword [esp + 0x84], edx
mov edi, edx
lea edx, [ebp + edx*2]
mov byte [edi + edx + 1], bl
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x14]
mov edi, edx
imul edx, ecx
imul edi, ecx
add edx, eax
add edi, eax
mov bl, byte [ebx + edi*4 + 2]
mov dword [esp + 0x84], edx
mov edi, edx
lea edx, [ebp + edx*2]
mov byte [edi + edx + 2], bl
mov edx, dword [esi + 0x18]
inc eax
cmp eax, edx
jl 0x422d50
mov eax, dword [esi + 0x1c]
inc ecx
cmp ecx, eax
jl 0x422d43
mov eax, dword [esi + 0x1c]
lea edi, [eax - 1]
test edi, edi
jl 0x422e00
mov eax, dword [esi + 0x18]
lea ecx, [eax + eax*2]
imul eax, edi
push 0
lea edx, [ebp + eax*2]
push ecx
add edx, eax
push edx
lea ecx, [esp + 0x54]
call fcn.0041dd90
dec edi
jns 0x422de1
push ebp
call fcn.0043c41c
add esp, 4
jmp 0x422e6a
cmp dword [esi + 0x28], ebx
je 0x422e25
lea ecx, [esp + 0x48]
mov dword [esp + 0x78], 0xffffffff
call fcn.0041e160
xor eax, eax
jmp 0x422e80
mov eax, dword [esi + 0x10]
cmp eax, ebp
jne 0x422e30
xor eax, eax
jmp 0x422e33
add eax, 0x28
push ebp
push 0x400
push eax
lea ecx, [esp + 0x54]
call fcn.0041dd90
mov eax, dword [esi + 0x1c]
lea edi, [eax - 1]
cmp edi, ebp
jl 0x422e6a
lea ecx, [ecx]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push ebp
push eax
imul eax, edi
add eax, ecx
push eax
lea ecx, [esp + 0x54]
call fcn.0041dd90
dec edi
jns 0x422e50
lea ecx, [esp + 0x48]
mov dword [esp + 0x78], 0xffffffff
call fcn.0041e160
mov eax, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x68]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x60]
pop ebp
call fcn.0043b8ee
add esp, 0x6c
ret 8