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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1764
call fcn.00465dc0
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [eax + 0x228]
test ecx, ecx
push esi
mov esi, dword [ebx + 0x3e0]
push edi
mov dword [esp + 0x38], ebx
jne 0x42c151
mov edx, dword [eax + 0x78]
jmp 0x42c157
mov edx, dword [eax + 0x1c0]
test ecx, ecx
mov dword [esp + 0x2c], edx
jne 0x42c164
mov edx, dword [eax + 0x7c]
jmp 0x42c16a
mov edx, dword [eax + 0x1bc]
mov eax, dword [ebp + 0xc]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42c170
sub eax, edi
mov dword [esp + 0x1c], eax
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x870]
rep stosd dword es:[edi], eax
mov ecx, 0xc0
lea edi, [esp + 0xc70]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x470]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0xf70]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x1370]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x54c]
test eax, eax
mov ecx, dword [ebx + 0x554]
mov dword [esp + 0x18], ecx
jge 0x42c1f3
lea edi, [eax + ecx]
test edi, edi
jge 0x42c1f3
mov dword [esp + 0x18], 0
add ecx, eax
cmp edx, ecx
jae 0x42c20b
sub edx, eax
test ecx, ecx
mov dword [esp + 0x18], edx
jge 0x42c20b
mov dword [esp + 0x18], 0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
call fcn.00446b50
mov eax, dword [ebx + 0x550]
shl eax, 1
xor edi, edi
mov dword [esp + 0x20], eax
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], edi
jle 0x42c389
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xc70]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov edi, edi
mov eax, dword [esp + 0xc]
movsx ecx, byte [eax]
push ecx
call fcn.00466312
add esp, 4
test eax, eax
je 0x42c2a3
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push 2
push edx
push eax
call fcn.00465720
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
push 2
push edx
push eax
call dword [0x489030]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
inc ecx
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
jmp 0x42c2ce
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 1
push ecx
push edx
call fcn.00465720
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push 1
push ecx
push edx
call dword [0x489030]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
shl eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + edi*4 + 0x870], ecx
mov dword [esp + edi*4 + 0x470], 0
mov dword [esp + edi*4 + 0x70], ecx
jge 0x42c315
lea edx, [ecx + eax]
test edx, edx
mov dword [esp + edi*4 + 0x470], eax
jge 0x42c315
xor edx, edx
mov dword [esp + edi*4 + 0x470], edx
mov dword [esp + edi*4 + 0x70], edx
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x2c]
cmp ecx, edx
jae 0x42c33f
mov edx, dword [esp + 0x20]
sub edx, ecx
add edx, eax
cmp ecx, eax
mov dword [esp + edi*4 + 0x70], edx
jae 0x42c33f
xor ecx, ecx
mov dword [esp + edi*4 + 0x470], ecx
mov dword [esp + edi*4 + 0x70], ecx
jmp 0x42c341
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov dword [esp + edi*4 + 0xf70], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + edi*4 + 0x1370], ecx
add eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
add edx, 3
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edx
jl 0x42c250
mov dword [esp + 0x48], edi
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
push edx
call fcn.00446b90
mov ecx, dword [ebp + 8]
call fcn.00446eb0
mov ecx, dword [ebx + 0x540]
mov edx, dword [ebx + 0x544]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x53c]
mov dword [esp + 0x34], eax
mov eax, 1
mov dword [ebx + 0x53c], eax
mov dword [ebx + 0x540], eax
mov dword [ebx + 0x544], eax
mov eax, dword [ebx + 0x554]
mov dword [esp + 0x44], ecx
lea ecx, [eax + 8]
imul ecx, ecx, 0xf00
mov dword [esp + 0x4c], edx
mov edx, dword [ebx + 0x550]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x5c], eax
lea ecx, [eax + eax]
lea eax, [edx + edx]
test eax, eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x10], 0
jge 0x42c40c
xor eax, eax
test ecx, ecx
jge 0x42c412
xor ecx, ecx
mov dword [ebx + 0x550], eax
mov eax, dword [ebx + 0x3dc]
push 0x489bd5
mov dword [ebx + 0x554], ecx
push eax
mov ecx, ebx
call fcn.00428780
mov eax, dword [ebx + 0x54c]
imul eax, dword [esp + 0x2c]
add eax, dword [ebx + 0x548]
test edi, edi
mov dword [esp + 0x64], eax
mov dword [esp + 0xc], 0
jle 0x42c6f4
lea ecx, [esp + 0xc70]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x28]
xor edx, edx
test eax, eax
mov dword [esp + 0x1c], edx
jle 0x42c4b9
mov eax, dword [esp + 0xc]
mov eax, dword [esp + eax*4 + 0x870]
add eax, 8
lea ecx, [eax + eax*2]
shl ecx, 1
mov dword [esp + 0x24], ecx
jmp 0x42c490
mov ecx, dword [esp + 0x24]
lea esp, [esp]
lea edi, [edx + esi]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
add edx, 0x780
cmp edx, eax
mov dword [esp + 0x1c], edx
jl 0x42c488
mov edi, dword [esp + 0x20]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42c4c2
sub eax, edx
cmp dword [ebx + 0x538], 0xa8c
mov edx, dword [ebx + 0x3dc]
mov ecx, 8
jne 0x42c4eb
mov ecx, dword [ebx + 0x554]
add ecx, 8
push eax
push edi
push 8
push ecx
push edx
call dword [0x48902c]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x10]
lea edi, [eax + edx]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + eax*4 + 0x870]
mov edx, dword [esp + 0x2c]
neg eax
add edx, eax
lea edx, [edx + edx*2]
lea eax, [eax + eax*2 + 0x780]
shl eax, 1
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + edx*4 + 0xf70]
cmp eax, dword [esp + edx*4 + 0x1370]
lea edx, [esp + edx*4 + 0x1370]
lea edi, [edi + edi*2]
mov ecx, 0x3c18
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jge 0x42c6c3
mov edx, dword [esp + 0xc]
mov edx, dword [esp + edx*4 + 0x470]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
mov edx, dword [esp + edx*4 + 0x70]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x24]
mov edx, dword [edx]
sub edx, eax
mov dword [esp + 0x24], edx
nop
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x60]
jge 0x42c6a4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + edx*4 + 0x70]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov edi, edi
movzx eax, byte [ecx + esi]
movzx ebx, byte [ecx + esi + 0x780]
movzx edx, byte [ecx + esi - 0x780]
and ebx, eax
and ebx, edx
mov edx, eax
movzx eax, byte [ecx + esi + 3]
and edx, eax
movzx eax, byte [ecx + esi - 3]
and edx, eax
movzx eax, byte [ecx + esi]
add ebx, edx
movzx edx, byte [ecx + esi - 0x783]
lea eax, [ebx + eax*2]
movzx ebx, byte [ecx + esi + 0x783]
lea edx, [edx + eax*2]
movzx eax, byte [ecx + esi - 0x77d]
add edx, eax
movzx eax, byte [ecx + esi + 0x780]
add ebx, eax
movzx eax, byte [ecx + esi + 0x77d]
add ebx, edx
movzx edx, byte [ecx + esi + 3]
add eax, ebx
add eax, edx
movzx edx, byte [ecx + esi - 0x780]
add eax, edx
movzx edx, byte [ecx + esi - 3]
add eax, edx
mov edx, 0x10
sub edx, eax
test eax, eax
mov dword [esp + 0x3c], edx
je 0x42c687
mov ebx, dword [esp + 0x14]
movzx ebx, byte [edi + ebx]
mov edi, dword [esp + 0x18]
imul ebx, edx
mov edx, eax
imul edx, dword [esp + 0x4c]
add ebx, edx
mov edx, dword [esp + 0x14]
shr ebx, 4
mov byte [edi + edx], bl
movzx ebx, byte [edi + edx + 1]
imul ebx, dword [esp + 0x3c]
mov edx, eax
imul eax, dword [esp + 0x34]
imul edx, dword [esp + 0x44]
add ebx, edx
mov edx, dword [esp + 0x14]
shr ebx, 4
mov byte [edi + edx + 1], bl
movzx edx, byte [edi + edx + 2]
imul edx, dword [esp + 0x3c]
add edx, eax
mov eax, dword [esp + 0x14]
shr edx, 4
mov byte [edi + eax + 2], dl
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
add edi, 3
add ecx, 6
dec eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], eax
jne 0x42c5a0
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
add edi, eax
mov eax, dword [esp + 0x24]
add ecx, edx
dec eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
jne 0x42c580
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + eax*4 + 0x870]
mov edx, dword [esp + 0x10]
add edx, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
inc eax
add edx, 3
cmp eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], edx
jl 0x42c461
mov eax, dword [ebx + 0x42c]
test eax, eax
je 0x42c727
mov edx, dword [ebx + 0x3dc]
push eax
push edx
call dword [0x48904c]
mov eax, dword [ebx + 0x428]
push eax
call dword [0x489054]
xor eax, eax
mov dword [ebx + 0x428], eax
mov dword [ebx + 0x42c], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x53c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ebx + 0x540], edx
mov edx, dword [esp + 0x5c]
mov dword [ebx + 0x550], ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x544], eax
mov dword [ebx + 0x554], edx
call fcn.00446f20
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8