Function at 0x422ebd
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 esi
mov esi, ecx
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x422ed2
xor eax, eax
jmp 0x423284
push ebx
push ebp
push edi
mov edi, dword [esp + 0x84]
test edi, edi
mov ebx, 8
jne 0x422ef8
mov ebp, dword [esi + 0x28]
xor eax, eax
cmp ebp, ebx
setne al
dec eax
and eax, 0xfffffff0
add eax, 0x18
mov edi, eax
mov edx, dword [esi + 0x18]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], cx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x50]
test cl, 0xf
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], 0x28
mov dword [esp + 0x24], edx
mov word [esp + 0x2c], 1
mov word [esp + 0x2e], di
mov dword [esp + 0x30], eax
je 0x422f7f
mov edx, dword [esi + 0x58]
mov ebp, dword [esi + 0x54]
or eax, 0xf
shl edx, 0x10
and ebp, 0xffff
or edx, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], edx
test cl, 0xf0
je 0x422fa2
mov ecx, dword [esi + 0x5c]
or eax, 0xf0
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x60]
shl eax, 0x10
and ecx, 0xffff
or eax, ecx
mov dword [esp + 0x3c], eax
push 2
lea edx, [esp + 0x14]
push 0x4608a8
push edx
call fcn.0043bf40
add esp, 0xc
cmp edi, ebx
je 0x422ff0
cmp edi, 0x18
je 0x422fda
cmp edi, 0x20
jne 0x423041
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
imul eax, ecx
shl eax, 2
mov dword [esp + 0x1a], 0x36
jmp 0x423001
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
imul eax, ecx
lea eax, [eax + eax*2]
mov dword [esp + 0x1a], 0x36
jmp 0x423001
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], 0
call fcn.0041e310
test eax, eax
lea ecx, [esp + 0x48]
jne 0x423048
mov dword [esp + 0x78], 0xffffffff
call fcn.0041e160
xor eax, eax
jmp 0x423281
push 0
push 0xe
lea edx, [esp + 0x18]
push edx
call fcn.0041dd90
push 0
push 0x28
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
call fcn.0041dd90
cmp edi, ebx
je 0x42320b
cmp edi, 0x18
je 0x4230b8
cmp edi, 0x20
jne 0x42326b
mov eax, dword [esi + 0x1c]
lea edi, [eax - 1]
test edi, edi
jl 0x42326b
lea esp, [esp]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax*4]
imul eax, edi
push 0
lea eax, [ecx + eax*4]
push edx
push eax
lea ecx, [esp + 0x54]
call fcn.0041dd90
dec edi
jns 0x423090
jmp 0x42326b
mov eax, dword [esi + 0x28]
cmp eax, 0x18
jne 0x4230f6
mov eax, dword [esi + 0x1c]
lea edi, [eax - 1]
test edi, edi
jl 0x42326b
mov edi, edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + eax*2]
imul eax, edi
push 0
lea ecx, [ecx + eax*2]
add ecx, eax
push edx
push ecx
lea ecx, [esp + 0x54]
call fcn.0041dd90
dec edi
jns 0x4230d0
jmp 0x42326b
cmp eax, 0x20
jne 0x42326b
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 0x4231d7
mov edx, dword [esi + 0x18]
xor eax, eax
test edx, edx
jle 0x4231cb
mov edi, edi
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 0x423150
mov eax, dword [esi + 0x1c]
inc ecx
cmp ecx, eax
jl 0x423144
mov eax, dword [esi + 0x1c]
lea edi, [eax - 1]
test edi, edi
jl 0x423200
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 0x4231e1
push ebp
call fcn.0043c41c
add esp, 4
jmp 0x42326b
cmp dword [esi + 0x28], ebx
je 0x423225
lea ecx, [esp + 0x48]
mov dword [esp + 0x78], 0xffffffff
call fcn.0041e160
xor eax, eax
jmp 0x423281
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42322f
add eax, 0x28
push 0
push 0x400
push eax
lea ecx, [esp + 0x54]
call fcn.0041dd90
mov eax, dword [esi + 0x1c]
lea edi, [eax - 1]
test edi, edi
jl 0x42326b
lea ebx, [ebx]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push 0
push eax
imul eax, edi
add eax, ecx
push eax
lea ecx, [esp + 0x54]
call fcn.0041dd90
dec edi
jns 0x423250
lea ecx, [esp + 0x48]
mov dword [esp + 0x78], 0xffffffff
call fcn.0041e160
mov eax, 1
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x60]
pop esi
call fcn.0043b8ee
add esp, 0x6c
ret 8
add ecx, 8
jmp 0x422ea0